Message ID | 8a9af45028b36379c29e10da6f7ea4be503df129.1375279948.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBL524SHQKGQEAZDJIGA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9CCE0248E6 for <linaro@patches.linaro.org>; Wed, 31 Jul 2013 14:20:31 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id o19sf1079111qap.3 for <linaro@patches.linaro.org>; Wed, 31 Jul 2013 07:20:31 -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=TjkDpNsfnJQmhF0nM+vP+XR2oCq4D1jzQJf4Su8Y0do=; b=FODaQqT4B5NSMj+tswCqnEs8MFUj0xTQMCY6DvNYswsEwkpkk1XjME6xxbceoiC6UF g+AznxVOeryxfJGdDJfTTsu/JL8+B+SKoAW5nWry5kuGr3ExqOY0EThAPFk2bCh5RGoz y8P8UIx/PSfqgRfijd6imuOqC52iw6b4a483gtuo++sV28WKdPOIFUiwmdSNxhhRSEBU ItEkMVQDw4dbUT/H16S4rz+OAnbJ0GDTaxeq6ygRgpTgZnxg0JMlWWJUQ3NHpkPae7k0 //94p5dKmL0Ts/RzWkJxxCGur+RaVY8EXwEMo94iIDhoJg4I1DMwn2RouybFjCsBBS9m Ttbw== X-Received: by 10.236.226.6 with SMTP id a6mr35821565yhq.35.1375280431420; Wed, 31 Jul 2013 07:20:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.196 with SMTP id og4ls666896qeb.69.gmail; Wed, 31 Jul 2013 07:20:31 -0700 (PDT) X-Received: by 10.52.187.229 with SMTP id fv5mr7780150vdc.92.1375280431270; Wed, 31 Jul 2013 07:20:31 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id gn1si340804vec.105.2013.07.31.07.20.31 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so753039vbg.31 for <patchwork-forward@linaro.org>; Wed, 31 Jul 2013 07:20:31 -0700 (PDT) X-Received: by 10.220.164.138 with SMTP id e10mr11588176vcy.27.1375280431154; Wed, 31 Jul 2013 07:20:31 -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 pc8csp239324vcb; Wed, 31 Jul 2013 07:20:30 -0700 (PDT) X-Received: by 10.66.222.138 with SMTP id qm10mr82254387pac.101.1375280430340; Wed, 31 Jul 2013 07:20:30 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id yl7si3185714pab.203.2013.07.31.07.20.30 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so826935pbc.31 for <patches@linaro.org>; Wed, 31 Jul 2013 07:20:30 -0700 (PDT) X-Received: by 10.68.164.1 with SMTP id ym1mr28584599pbb.33.1375280429972; Wed, 31 Jul 2013 07:20:29 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fa5sm81829pbb.3.2013.07.31.07.20.25 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:29 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org> Subject: [PATCH 07/15] cpufreq: integrator: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:16 +0530 Message-Id: <8a9af45028b36379c29e10da6f7ea4be503df129.1375279948.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1375279948.git.viresh.kumar@linaro.org> References: <cover.1375279948.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1375279948.git.viresh.kumar@linaro.org> References: <cover.1375279948.git.viresh.kumar@linaro.org> X-Gm-Message-State: ALoCoQmhzvTXXRctr4QFKB1wxwHee7+ehc/o3ccVn/2s3sRlJQkdVGLoWhD6H/4pT5H+b+lORNTQ 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.212.44 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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/cpufreq/integrator-cpufreq.c b/drivers/cpufreq/integrator-cpufreq.c index f7c99df..7205ea3 100644 --- a/drivers/cpufreq/integrator-cpufreq.c +++ b/drivers/cpufreq/integrator-cpufreq.c @@ -199,6 +199,7 @@ static struct cpufreq_driver integrator_driver = { .target = integrator_set_target, .get = integrator_get, .init = integrator_cpufreq_init, + .owner = THIS_MODULE, .name = "integrator", };
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 <viresh.kumar@linaro.org> --- drivers/cpufreq/integrator-cpufreq.c | 1 + 1 file changed, 1 insertion(+)