From patchwork Wed Jul 31 14:19:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18697 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 07287248E6 for ; Wed, 31 Jul 2013 14:20:24 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f64sf999507yha.6 for ; Wed, 31 Jul 2013 07:20:23 -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=wQn57GjkLdAbrlGgJh5chAPlmEsnnx5xTMWZ/emYQbY=; b=F+ugmWp3PxmYe57F8Yk/J8jtcrnlTwl7lsq9HysehVTpK380UUOgkOxk/QlerH8l7q oU+Ug3PNQDjo1mW02Wu7q6U141rb2agcWy2txpEzTCSMK1QVcriCtoAqwR663CZt+OR0 FfLhxZQA5owxrsYi1U60JbMETxKwBFyfh6UrzDK88bquelqw43FA4RYI6nUpRgEJboiM Ku0l6pNNLRmHWW1LVWXeRydYceqtfmxb2fAoe4dp3KOrXNNLxEaSrA8wWqbUq4nq35d7 NzS1HmJmadGi1mx7in/4g/8hMTZSvBMmFK39dUZog1xFdbiNNP4qIj/ziCaSjBh1BolX dAtQ== X-Received: by 10.236.46.105 with SMTP id q69mr22792784yhb.22.1375280423808; Wed, 31 Jul 2013 07:20:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.134 with SMTP id gu6ls616866qeb.83.gmail; Wed, 31 Jul 2013 07:20:23 -0700 (PDT) X-Received: by 10.59.0.2 with SMTP id au2mr28807942ved.83.1375280423693; Wed, 31 Jul 2013 07:20:23 -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 x12si343421vcl.67.2013.07.31.07.20.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:23 -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 e12so757632vbg.15 for ; Wed, 31 Jul 2013 07:20:23 -0700 (PDT) X-Received: by 10.52.107.201 with SMTP id he9mr15437003vdb.106.1375280423565; Wed, 31 Jul 2013 07:20:23 -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 pc8csp239316vcb; Wed, 31 Jul 2013 07:20:23 -0700 (PDT) X-Received: by 10.68.12.134 with SMTP id y6mr25180286pbb.29.1375280422745; Wed, 31 Jul 2013 07:20:22 -0700 (PDT) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by mx.google.com with ESMTPS id tp5si2933098pac.135.2013.07.31.07.20.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.181 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.181; Received: by mail-pd0-f181.google.com with SMTP id g10so806670pdj.26 for ; Wed, 31 Jul 2013 07:20:22 -0700 (PDT) X-Received: by 10.68.12.165 with SMTP id z5mr79408479pbb.172.1375280422341; Wed, 31 Jul 2013 07:20:22 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id dc5sm2428442pbc.37.2013.07.31.07.20.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:21 -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 06/15] cpufreq: imx6q: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:15 +0530 Message-Id: <42eff9f40a2403332561d611e997613791c39f29.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: ALoCoQlZK8xxYfepQqk8xwHU1fmLxtvJVWSPNaPwiIQfh6WCGKvDiYyeYHj2CvOFh036nFQp14zi 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: Shawn Guo Signed-off-by: Viresh Kumar --- drivers/cpufreq/imx6q-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index e37cdae..adbda1a 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -209,6 +209,7 @@ static struct cpufreq_driver imx6q_cpufreq_driver = { .init = imx6q_cpufreq_init, .exit = imx6q_cpufreq_exit, .name = "imx6q-cpufreq", + .owner = THIS_MODULE, .attr = imx6q_cpufreq_attr, };