Message ID | 0b4bbc3d04710cccd9b575ae54255ecf1168a5ec.1375279948.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBDV34SHQKGQEU36R2BA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0B36248E6 for <linaro@patches.linaro.org>; Wed, 31 Jul 2013 14:22:06 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf938514vbg.11 for <linaro@patches.linaro.org>; Wed, 31 Jul 2013 07:22:06 -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=JNOBCAp5VHEn/MuT0lAYt+cn+efegef/FW6oW+IXiUc=; b=FKn3PVHvWtPDWIXJcqnEpW7yGnSLFu0BkxC9XY/h+8Rk+BqO9ofBM8SauTb13oiE0N mC98b9LA3o92dsqqN9s0IAY58ECuN8Fg6OqEmWjCZD3LQ3NsC8HE2Jkzc+cR1Ex///w0 dcKmJrhLeAfbFLQd6gGhTL2rIyAo+qQjANjsZLcnx2TkUS4h87jkTn19NJsqs8efKRBs 6BvNc3fjExefyuJEyw1kIjwM6buqx/uAjrMAVSg61cFn3VWeWCfN80n4HauBuwH1GDyE 9TGnDqTwFlcP+nUDvPmkuBV6kBVICzorvPbdl/qIe4cU0B+qWmt2Je2MzK/V6wECTKtM YMiw== X-Received: by 10.236.140.40 with SMTP id d28mr23039918yhj.24.1375280526695; Wed, 31 Jul 2013 07:22:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.195 with SMTP id gw3ls696237qeb.64.gmail; Wed, 31 Jul 2013 07:22:06 -0700 (PDT) X-Received: by 10.58.182.103 with SMTP id ed7mr29332680vec.70.1375280526556; Wed, 31 Jul 2013 07:22:06 -0700 (PDT) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id z15si344512vcp.69.2013.07.31.07.22.06 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:22:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.45 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.45; Received: by mail-vb0-f45.google.com with SMTP id e15so756281vbg.32 for <patchwork-forward@linaro.org>; Wed, 31 Jul 2013 07:22:06 -0700 (PDT) X-Received: by 10.220.198.133 with SMTP id eo5mr11635215vcb.24.1375280526422; Wed, 31 Jul 2013 07:22:06 -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 pc8csp239409vcb; Wed, 31 Jul 2013 07:22:05 -0700 (PDT) X-Received: by 10.68.29.2 with SMTP id f2mr80470541pbh.184.1375280525625; Wed, 31 Jul 2013 07:22:05 -0700 (PDT) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id i3si3205869pac.132.2013.07.31.07.22.05 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:22:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kl13so922640pab.6 for <patches@linaro.org>; Wed, 31 Jul 2013 07:22:05 -0700 (PDT) X-Received: by 10.66.218.74 with SMTP id pe10mr73540664pac.177.1375280525202; Wed, 31 Jul 2013 07:22:05 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ue9sm4842402pab.7.2013.07.31.07.22.01 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:22:04 -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>, Guan Xuetao <gxt@mprc.pku.edu.cn> Subject: [PATCH 15/15] cpufreq: Unicore: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:24 +0530 Message-Id: <0b4bbc3d04710cccd9b575ae54255ecf1168a5ec.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: ALoCoQm8BoRDkZ/9UX2un504og8DqFyR/VVw+xbcRn14Z+7hkMwFOCkjnqQfZKgHEfJhn/e8sWo0 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.45 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/unicore2-cpufreq.c b/drivers/cpufreq/unicore2-cpufreq.c index 12fc904..93519f7 100644 --- a/drivers/cpufreq/unicore2-cpufreq.c +++ b/drivers/cpufreq/unicore2-cpufreq.c @@ -81,6 +81,7 @@ static struct cpufreq_driver ucv2_driver = { .target = ucv2_target, .get = ucv2_getspeed, .init = ucv2_cpu_init, + .owner = THIS_MODULE, .name = "UniCore-II", };
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: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/cpufreq/unicore2-cpufreq.c | 1 + 1 file changed, 1 insertion(+)