From patchwork Wed Jul 31 14:19:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18695 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD04A248E6 for ; Wed, 31 Jul 2013 14:20:09 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf989268qee.10 for ; Wed, 31 Jul 2013 07:20:09 -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=u18R1fXqGl9Yo2skFh2SHclwh2hDP0ctadoiqkvdJq0=; b=TeT/Uh69cOm8HIYI7+cOkH0bTGKpYIvY+jvMXjuFyHHg79/04Es3pTGGNrfI+3tob8 OQ7ftTizN9mYuwCdMDLfsRB+9bIPWPDJMedwemtr6dBo8flWID2OIWANNPnn1K6rNhy0 W2GqApzz8PCSAo0JISnqbAhCL2FfdDFBeiZIUG/d0CsF+WOiEYCZZuZHIjX91MLfmU5o pMVsfIRxbXtMIvh0vxXSsDsq1407sCoZEiPolrxK5TSCPdTPT5e4KdI+b4YsNJ1RpHGt EouEthG9eY9GlAe2F+NkCaZ5JyDAya5CFnQRTaLg+6HXBGHTkYIfu3q1UdvsVJDF5KqF L3Sw== X-Received: by 10.236.42.116 with SMTP id i80mr33951027yhb.26.1375280409577; Wed, 31 Jul 2013 07:20:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.29.229 with SMTP id n5ls433229qeh.73.gmail; Wed, 31 Jul 2013 07:20:09 -0700 (PDT) X-Received: by 10.58.231.71 with SMTP id te7mr29048652vec.65.1375280409405; Wed, 31 Jul 2013 07:20:09 -0700 (PDT) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id ha3si343802vdb.69.2013.07.31.07.20.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.42 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.42; Received: by mail-vb0-f42.google.com with SMTP id e12so757022vbg.1 for ; Wed, 31 Jul 2013 07:20:09 -0700 (PDT) X-Received: by 10.58.211.227 with SMTP id nf3mr29073384vec.20.1375280409268; Wed, 31 Jul 2013 07:20:09 -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 pc8csp239305vcb; Wed, 31 Jul 2013 07:20:08 -0700 (PDT) X-Received: by 10.68.105.195 with SMTP id go3mr75781751pbb.180.1375280408209; Wed, 31 Jul 2013 07:20:08 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx.google.com with ESMTPS id ei3si1760274pbb.307.2013.07.31.07.20.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.169 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.169; Received: by mail-pd0-f169.google.com with SMTP id y11so812082pdj.14 for ; Wed, 31 Jul 2013 07:20:07 -0700 (PDT) X-Received: by 10.67.12.175 with SMTP id er15mr80050671pad.31.1375280407741; Wed, 31 Jul 2013 07:20:07 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id xe9sm4844871pab.0.2013.07.31.07.20.03 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:07 -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 , Linus Walleij Subject: [PATCH 04/15] cpufreq: dbx500: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:13 +0530 Message-Id: <538b0cb147d3bd4a5e21b49c507f725f7fb7feb9.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: ALoCoQmFw/dW+jBA1vQuwV6YEMeMrKC+75PojaCrztY/P2I5JREzGQckNkzB0aBC10wI5Cnt1JQQ 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.42 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: Linus Walleij Signed-off-by: Viresh Kumar Acked-by: Linus Walleij --- drivers/cpufreq/dbx500-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index 26321cd..2527f1d 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -120,6 +120,7 @@ static struct cpufreq_driver dbx500_cpufreq_driver = { .get = dbx500_cpufreq_getspeed, .init = dbx500_cpufreq_init, .name = "DBX500", + .owner = THIS_MODULE, .attr = dbx500_cpufreq_attr, };