From patchwork Wed Jul 31 14:19:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18705 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0726C248E6 for ; Wed, 31 Jul 2013 14:22:00 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id e13sf943142vbg.4 for ; Wed, 31 Jul 2013 07:21:59 -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=jeNcgRsyOI3GF4Qgr7WkKt6msGV11g3/bONp97/48So=; b=MEevXevsr5xkG/0iaQLwAHRjUwWADmhcnZuXET3WYi3/sRBqeh/h4Sqx4wvWw4CUr9 W1Tt6TKiJLd4QvmDrBPSulSKDt81LY9rMSbsIsrmh2+vQWs0nLaU00gyMHjyxxxIfLlJ deWjiZ+S9/mJfbxdlKEF87u/kEWYcVhyjc5VphREWNy4Sbhra6lgMaPnO8Krl0r2GV8h eFaZWm5G8RHMBW2RIYZuLkeTH9xlgKVInWdXKOphdU0WpOyiYFKyLlLHmfbBJmlBskwo AiUTRHREKAYYPgyNvIiskWYM6BLAGnYWZjdmkRI1dqDadnILbLevkds/EWPJsfevbeD3 zunQ== X-Received: by 10.236.124.78 with SMTP id w54mr33537563yhh.44.1375280519776; Wed, 31 Jul 2013 07:21:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.4.8 with SMTP id g8ls647836qeg.67.gmail; Wed, 31 Jul 2013 07:21:59 -0700 (PDT) X-Received: by 10.220.17.206 with SMTP id t14mr11573446vca.15.1375280519623; Wed, 31 Jul 2013 07:21:59 -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 j7si343793vci.81.2013.07.31.07.21.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:59 -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 e15so756126vbg.32 for ; Wed, 31 Jul 2013 07:21:59 -0700 (PDT) X-Received: by 10.52.164.16 with SMTP id ym16mr23747441vdb.32.1375280519505; Wed, 31 Jul 2013 07:21:59 -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 pc8csp239402vcb; Wed, 31 Jul 2013 07:21:59 -0700 (PDT) X-Received: by 10.68.36.38 with SMTP id n6mr10284411pbj.15.1375280518231; Wed, 31 Jul 2013 07:21:58 -0700 (PDT) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by mx.google.com with ESMTPS id hq6si3161764pad.336.2013.07.31.07.21.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.52 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.52; Received: by mail-pb0-f52.google.com with SMTP id wz12so821454pbc.39 for ; Wed, 31 Jul 2013 07:21:57 -0700 (PDT) X-Received: by 10.68.96.229 with SMTP id dv5mr80536258pbb.89.1375280517842; Wed, 31 Jul 2013 07:21:57 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bg3sm2422582pbb.44.2013.07.31.07.21.53 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:21:57 -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 , Stephen Warren Subject: [PATCH 14/15] cpufreq: Tegra: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:23 +0530 Message-Id: <7e832fd210488da0675b6c70fc9a3947eec7899d.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: ALoCoQl3oWGbdplW0B99VrSI2qou1twBPbi6t96lm7JJfMkGCzyYPWBg7JKEB13kIpnor94H/xW1 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: 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: Stephen Warren Signed-off-by: Viresh Kumar Acked-by: Stephen Warren --- drivers/cpufreq/tegra-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index cd66b85..fc0ea61 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -250,6 +250,7 @@ static struct cpufreq_driver tegra_cpufreq_driver = { .init = tegra_cpu_init, .exit = tegra_cpu_exit, .name = "tegra", + .owner = THIS_MODULE, .attr = tegra_cpufreq_attr, };