Message ID | 584c19ee84ad8a183985fd9a9152d147316038e3.1375279948.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBAF34SHQKGQEBANHHPQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9500B248E6 for <linaro@patches.linaro.org>; Wed, 31 Jul 2013 14:21:52 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id l109sf1005496yhq.1 for <linaro@patches.linaro.org>; Wed, 31 Jul 2013 07:21:52 -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=35z/ndomi24hLf1H7+HQbSf7eqeuU/NnbbGqiTfGqQQ=; b=B3Ner+L3QQuDwmeSRjBR+G6pb5WGoWfsmmF0Ex5fCC6wNPTlKFvv2r+5nWEvyedrYK cx4mLsPfabjxi29aiY5oubk6/FRm81FV7S6RQVJrCD3Ur1MRlo+/Wq3dpgqPmrZK64KE guoh86nUhndKhgni9kCZ894bBZG0XKUoxTCpdPekAoBUpabz4pNUmVQ2gYB8eUT17rgD vNMi6u0f9uKGCUxMm/E2FAxZ11RrZU+tFcEREtF5Agj4BjjbwO1xDI+iH2GGmqzNR+nm eOt44A2NuJiApPN4Gt0BkTkrgTIYRt5i9/JZCOKVivWUtUkGw2nqF+6l66ncepV2+f3F CngQ== X-Received: by 10.236.194.33 with SMTP id l21mr34161165yhn.42.1375280512384; Wed, 31 Jul 2013 07:21:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.8 with SMTP id g8ls647795qeg.67.gmail; Wed, 31 Jul 2013 07:21:52 -0700 (PDT) X-Received: by 10.58.13.41 with SMTP id e9mr28594166vec.81.1375280512257; Wed, 31 Jul 2013 07:21:52 -0700 (PDT) Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com [209.85.212.53]) by mx.google.com with ESMTPS id ha3si350457vdb.17.2013.07.31.07.21.52 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.53 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.53; Received: by mail-vb0-f53.google.com with SMTP id i3so738869vbh.40 for <patchwork-forward@linaro.org>; Wed, 31 Jul 2013 07:21:52 -0700 (PDT) X-Received: by 10.58.187.4 with SMTP id fo4mr28924774vec.55.1375280512153; Wed, 31 Jul 2013 07:21:52 -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 pc8csp239397vcb; Wed, 31 Jul 2013 07:21:51 -0700 (PDT) X-Received: by 10.68.186.193 with SMTP id fm1mr80000322pbc.163.1375280511304; Wed, 31 Jul 2013 07:21:51 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id bk3si1829535pbd.28.2013.07.31.07.21.50 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:51 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id uo5so833418pbc.37 for <patches@linaro.org>; Wed, 31 Jul 2013 07:21:50 -0700 (PDT) X-Received: by 10.66.218.39 with SMTP id pd7mr81729474pac.148.1375280510693; Wed, 31 Jul 2013 07:21:50 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id py4sm2472101pbc.14.2013.07.31.07.21.46 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:50 -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 13/15] cpufreq: SPEAr: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:22 +0530 Message-Id: <584c19ee84ad8a183985fd9a9152d147316038e3.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: ALoCoQnFaxOKU2iNuZx74XVbLqj8WyabPgBW4HkPMKHM8QYKVqMa3g1K/cV/537W3XnBSR3ZS+wh 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.53 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/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c index c3efa7f..3c00dd5 100644 --- a/drivers/cpufreq/spear-cpufreq.c +++ b/drivers/cpufreq/spear-cpufreq.c @@ -212,6 +212,7 @@ static struct cpufreq_driver spear_cpufreq_driver = { .get = spear_cpufreq_get, .init = spear_cpufreq_init, .exit = spear_cpufreq_exit, + .owner = THIS_MODULE, .attr = spear_cpufreq_attr, };
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/spear-cpufreq.c | 1 + 1 file changed, 1 insertion(+)