From patchwork Wed Jul 31 14:19:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18703 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CAE9248E6 for ; Wed, 31 Jul 2013 14:21:13 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oz10sf997613veb.11 for ; Wed, 31 Jul 2013 07:21:13 -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=pNdIGzmIts7FwVNq3qpsDZBcfWlg/ag0UXougDmlYXs=; b=WVzcGS2kC6RJN2YeGQPYHaAjTD6eYAbBOeb22COqmMe9c0Qe5kxzt9MV3pGufCvLfh MAdMT52wdXAOry4B/DW6AQslzry8L8Gh5wpYcKDbFtEZlFaZnASW8WJLvvkl1TADrXXc v4ujHAKMoSQpYFwk1ysSHO4VDZCNnvD1BPqJ+r3WJjo9i6cv+prjZxKg+/l2SQdDtAFS oH6avIJeu8CsJC5wqZU5ULAQ5qVnYM+954kDENHPmJwfe6dTo9BGmFVjwddt3PKPDRK3 juw63euctAjH15nGRN0CXv56d7j2jMTMScpYfFZu+NoMyU995tg82bijIVholZ2KuyPN j3wQ== X-Received: by 10.236.120.232 with SMTP id p68mr34972000yhh.43.1375280473037; Wed, 31 Jul 2013 07:21:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.233 with SMTP id dv9ls697990qeb.81.gmail; Wed, 31 Jul 2013 07:21:12 -0700 (PDT) X-Received: by 10.58.251.144 with SMTP id zk16mr28028485vec.37.1375280472853; Wed, 31 Jul 2013 07:21:12 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id u5si340498vet.114.2013.07.31.07.21.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 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.172; Received: by mail-ve0-f172.google.com with SMTP id oz10so832666veb.3 for ; Wed, 31 Jul 2013 07:21:12 -0700 (PDT) X-Received: by 10.220.164.202 with SMTP id f10mr11463643vcy.25.1375280472724; Wed, 31 Jul 2013 07:21:12 -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 pc8csp239367vcb; Wed, 31 Jul 2013 07:21:12 -0700 (PDT) X-Received: by 10.68.110.165 with SMTP id ib5mr13482738pbb.196.1375280471620; Wed, 31 Jul 2013 07:21:11 -0700 (PDT) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by mx.google.com with ESMTPS id i3si3184217pac.219.2013.07.31.07.21.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.174 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.174; Received: by mail-pd0-f174.google.com with SMTP id 10so811560pdc.33 for ; Wed, 31 Jul 2013 07:21:10 -0700 (PDT) X-Received: by 10.69.17.97 with SMTP id gd1mr16374400pbd.62.1375280469103; Wed, 31 Jul 2013 07:21:09 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ys4sm2474473pbb.9.2013.07.31.07.21.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:08 -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 Subject: [PATCH 12/15] cpufreq: sa11**: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:21 +0530 Message-Id: <24a297bc16b61b2577266b8a8f4ab2ac7b83f03d.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: ALoCoQm3+2qggpzZsO5bupf43VEsBfn7N8JPxOWjbzU5zkQdl4hoHTMb5sjt5hzstHvrezQVhAXJ 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.172 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. Signed-off-by: Viresh Kumar --- drivers/cpufreq/sa1100-cpufreq.c | 1 + drivers/cpufreq/sa1110-cpufreq.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/cpufreq/sa1100-cpufreq.c b/drivers/cpufreq/sa1100-cpufreq.c index cff18e8..f41dbd7 100644 --- a/drivers/cpufreq/sa1100-cpufreq.c +++ b/drivers/cpufreq/sa1100-cpufreq.c @@ -233,6 +233,7 @@ static struct cpufreq_driver sa1100_driver __refdata = { .target = sa1100_target, .get = sa11x0_getspeed, .init = sa1100_cpu_init, + .owner = THIS_MODULE, .name = "sa1100", }; diff --git a/drivers/cpufreq/sa1110-cpufreq.c b/drivers/cpufreq/sa1110-cpufreq.c index 39c90b6..61627fb 100644 --- a/drivers/cpufreq/sa1110-cpufreq.c +++ b/drivers/cpufreq/sa1110-cpufreq.c @@ -349,6 +349,7 @@ static struct cpufreq_driver sa1110_driver __refdata = { .target = sa1110_target, .get = sa11x0_getspeed, .init = sa1110_cpu_init, + .owner = THIS_MODULE, .name = "sa1110", };