From patchwork Wed Jul 31 14:19:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18699 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C09C8248E6 for ; Wed, 31 Jul 2013 14:20:40 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id s1sf782492qcw.4 for ; Wed, 31 Jul 2013 07:20:40 -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=QXeP6anja7qIjoQdPkdP7gcNsAlE4C9PjyAc5KGcuh0=; b=kAeXSu5ajHOHFPrrIk8LlsL7KxHgBLjHyJxcSctqfRbLXrhpOPXc/GueX8bV8EeF3b 6M5zno0PEsfvmnIMl7qiXn9GFRoaY38LIm5NkrAOjjJhngnB7biwgks9c1oCaDWLeirC P5uykeqOGNZfjxBzktWz39bicnvSMbo6KfaQ+VOQqAZqypEFP9gVzuQSvfPcnXO5bE7N hy33c8UKgDSRnukTPKSsih9PpxeBuGRL772QaSY1jXl1CGCaoZbpIgJWvl7HIx0B2DT1 izGkRWA8hOj0bV11irLemuEu7u3HFUla/LXoumJxRn1YVJl6grKs9NvM1bhpI/rqSPGO E+uQ== X-Received: by 10.236.148.208 with SMTP id v56mr4061046yhj.45.1375280440586; Wed, 31 Jul 2013 07:20:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.132.197 with SMTP id ow5ls731572qeb.97.gmail; Wed, 31 Jul 2013 07:20:40 -0700 (PDT) X-Received: by 10.220.80.132 with SMTP id t4mr1287950vck.57.1375280440463; Wed, 31 Jul 2013 07:20:40 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id tf7si347161vcb.34.2013.07.31.07.20.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 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.46; Received: by mail-vb0-f46.google.com with SMTP id p13so748112vbe.5 for ; Wed, 31 Jul 2013 07:20:40 -0700 (PDT) X-Received: by 10.52.180.229 with SMTP id dr5mr3958030vdc.20.1375280440313; Wed, 31 Jul 2013 07:20:40 -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 pc8csp239330vcb; Wed, 31 Jul 2013 07:20:39 -0700 (PDT) X-Received: by 10.68.251.234 with SMTP id zn10mr79077662pbc.188.1375280439017; Wed, 31 Jul 2013 07:20:39 -0700 (PDT) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx.google.com with ESMTPS id tw4si1819419pbc.61.2013.07.31.07.20.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id rr13so822161pbb.20 for ; Wed, 31 Jul 2013 07:20:38 -0700 (PDT) X-Received: by 10.68.93.65 with SMTP id cs1mr79655839pbb.11.1375280438589; Wed, 31 Jul 2013 07:20:38 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bp12sm4847030pac.1.2013.07.31.07.20.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:38 -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 , Santosh Shilimkar Subject: [PATCH 08/15] cpufreq: omap: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:17 +0530 Message-Id: <2274a4c250c83058b5b2df75f33e47fe1422036a.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: ALoCoQkuM5sC3I6hoHmkFyit1nispszNYbbX/Pn+BnWJfyGuwOSsAGQHJ6EhpSm934e0M6J+eFFB 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.46 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: Santosh Shilimkar Signed-off-by: Viresh Kumar Acked-by: Santosh Shilimkar --- drivers/cpufreq/omap-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c index f31fcfc..5b18385 100644 --- a/drivers/cpufreq/omap-cpufreq.c +++ b/drivers/cpufreq/omap-cpufreq.c @@ -241,6 +241,7 @@ static struct cpufreq_driver omap_driver = { .init = omap_cpu_init, .exit = omap_cpu_exit, .name = "omap", + .owner = THIS_MODULE, .attr = omap_cpufreq_attr, };