From patchwork Wed Jul 31 14:19:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18702 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 52049248E6 for ; Wed, 31 Jul 2013 14:21:04 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id a11sf950814qcx.5 for ; Wed, 31 Jul 2013 07:21:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state :x-removed-original-auth:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=9dRVIb13SwDvMwf9Nj1Toj0kOTu0wfMZ/8wAgz9LnLk=; b=PiWhRtNA6IS9q450C7mLa8KXVFVhkpsY+b54sqaLejov1Y46iZJKwasKN0ipfYP4Vi 9d63FXuQ2TxasaQ4T2/EcOh/zRFC6AVS9f8HziFa1I9knmf3HekbrFWuc7+x682IT1yq lf4uXk+y542GgbTxUVO1Ia6T1pa1m/bXQ7DAlbSaSxeBrGBgN/Qx3NwjCP5tjA0J2UOV beQ6bvmssVgxmaT2K5BcvS9eqUfJEoZaq90Aemo6p2PfAL7Iomxeom7yHc/4v2ak4o5f 3UEoOs7UskSVNAl5EkCUt6X+LDcCqZRCxSl86O3EYbP2PICv+X3nBcZm13rwKa4DFGvS tTGQ== X-Received: by 10.236.88.231 with SMTP id a67mr32218739yhf.39.1375280464076; Wed, 31 Jul 2013 07:21:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.233 with SMTP id x9ls644594qef.46.gmail; Wed, 31 Jul 2013 07:21:03 -0700 (PDT) X-Received: by 10.52.30.48 with SMTP id p16mr5714539vdh.25.1375280463919; Wed, 31 Jul 2013 07:21:03 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id uw3si345743vec.58.2013.07.31.07.21.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oy10so813192veb.20 for ; Wed, 31 Jul 2013 07:21:03 -0700 (PDT) X-Received: by 10.220.164.138 with SMTP id e10mr11588868vcy.27.1375280463812; Wed, 31 Jul 2013 07:21:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp239362vcb; Wed, 31 Jul 2013 07:21:03 -0700 (PDT) X-Received: by 10.68.106.36 with SMTP id gr4mr7692413pbb.0.1375280462998; Wed, 31 Jul 2013 07:21:02 -0700 (PDT) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id gy1si3191541pac.181.2013.07.31.07.21.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.48; Received: by mail-pa0-f48.google.com with SMTP id kp13so915127pab.35 for ; Wed, 31 Jul 2013 07:21:02 -0700 (PDT) X-Received: by 10.68.60.132 with SMTP id h4mr80320022pbr.177.1375280462341; Wed, 31 Jul 2013 07:21:02 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id y6sm134518pbl.23.2013.07.31.07.20.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:01 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, arnd.bergmann@linaro.org, Viresh Kumar , Kukjin Kim Subject: [PATCH 11/15] cpufreq: s5pv210: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:20 +0530 Message-Id: <702cbf98ff441665e43b9572c16f2cb71f50c3c1.1375279948.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQkEEbIpeMYEqzr56GGCWe/qKZbNWCxmQU0a4eeaPU0NuLbTH5BTa6Vo7Hmu4e/zXVvi6wCd X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , CPUFreq core does following at multiple places: module_{get|put}(cpufreq_driver->owner)). This is done to make sure module doesn't get unloaded if it is currently in use. This will work only if the .owner field of cpufreq driver is initialized with a valid pointer. This field wasn't initialized for this driver, lets initialize it with THIS_MODULE. Cc: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s5pv210-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index 5c77570..9ebad24 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -609,6 +609,7 @@ static struct cpufreq_driver s5pv210_driver = { .target = s5pv210_target, .get = s5pv210_getspeed, .init = s5pv210_cpu_init, + .owner = THIS_MODULE, .name = "s5pv210", #ifdef CONFIG_PM .suspend = s5pv210_cpufreq_suspend,