From patchwork Wed Jul 31 14:19:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18693 Return-Path: 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 681C9248E6 for ; Wed, 31 Jul 2013 14:19:55 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id o19sf1075701qap.11 for ; Wed, 31 Jul 2013 07:19:55 -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=64diMzNhlTsu92nYXRQ/cUQOzur0Ce+CRGiMCvDK5eg=; b=AiHstl8EmI+/FV5sBLn4jVvt6J5JGm+fKfGuvx4uXBVps6Vlxe6UChFJnN29drvrR7 NQh8HkbUrr2oDkxOY2yY/dEd0A8gcfA2BLISDxng32q3IMil8Be1Kz9P1bA54Plmfq/q ZqiKh4m5S0rPJvZjCg01vUegphDbxOD4o6wb1sPe1d21xBSmUgYK/rdc9Jkt4fM50wIy G7A2pRB/paWF06PLQ4/6KgjA8MnQLhJNGleDswmLYFfnsjQz7pANP/mdpvBSKv+cIh69 7//f1xeg4B+c2gsy8zwbiWiZyeyFswM/6IYMyJMrtbIb/HCTMaG0FEFEAiCrC51Xpi4h 15yQ== X-Received: by 10.236.113.197 with SMTP id a45mr33318147yhh.14.1375280395130; Wed, 31 Jul 2013 07:19:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.139 with SMTP id jw11ls701839qeb.21.gmail; Wed, 31 Jul 2013 07:19:55 -0700 (PDT) X-Received: by 10.220.145.4 with SMTP id b4mr4662972vcv.94.1375280395015; Wed, 31 Jul 2013 07:19:55 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id to9si337054vdc.136.2013.07.31.07.19.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id b10so827096vea.35 for ; Wed, 31 Jul 2013 07:19:54 -0700 (PDT) X-Received: by 10.220.198.133 with SMTP id eo5mr11632317vcb.24.1375280394858; Wed, 31 Jul 2013 07:19:54 -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 pc8csp239288vcb; Wed, 31 Jul 2013 07:19:54 -0700 (PDT) X-Received: by 10.68.170.37 with SMTP id aj5mr81086946pbc.79.1375280393768; Wed, 31 Jul 2013 07:19:53 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id os4si3195157pac.149.2013.07.31.07.19.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id bg4so917534pad.32 for ; Wed, 31 Jul 2013 07:19:53 -0700 (PDT) X-Received: by 10.68.212.106 with SMTP id nj10mr80342704pbc.74.1375280393081; Wed, 31 Jul 2013 07:19:53 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ht5sm2438202pbb.29.2013.07.31.07.19.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:52 -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 , Shawn Guo Subject: [PATCH 02/15] cpufreq: cpufreq-cpu0: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:11 +0530 Message-Id: <8f37155d1524de4298f7b1de08b3474fe2d97241.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: ALoCoQnQ3toz3edsiqmV7h4T9+2uP6RW3qRfTJ9QB17VRGTWj2l1CDDZBihF4e/ogT0/vP5RVRtZ 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.176 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: Shawn Guo Signed-off-by: Viresh Kumar Acked-by: Shawn Guo --- drivers/cpufreq/cpufreq-cpu0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index ad1fde2..a087bf1 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c @@ -169,6 +169,7 @@ static struct cpufreq_driver cpu0_cpufreq_driver = { .init = cpu0_cpufreq_init, .exit = cpu0_cpufreq_exit, .name = "generic_cpu0", + .owner = THIS_MODULE, .attr = cpu0_cpufreq_attr, };