From patchwork Wed Jul 31 14:19:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18692 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f199.google.com (mail-gh0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 10CCF248E6 for ; Wed, 31 Jul 2013 14:19:48 +0000 (UTC) Received: by mail-gh0-f199.google.com with SMTP id g14sf866753ghb.2 for ; Wed, 31 Jul 2013 07:19:47 -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=5UJxXE08/eO2EK7tus9WlCQXbsYUuFa60Zqoq9rija4=; b=cFsJENZx2Rj967BYh08Bh2/W61oO6MSK9afVjbqTmHn3iC6lq3HpGt/lTJ9dD1XC2E L3Uz+SnkwIfLjFJa+YnVW/rtRbM7r80r00SVuvvmkLX3a2RdpLqzAG/+2IE6E0AgPWDY FavQYXJXifgYxAKpCkBMjrWqqht98VSYiZ4KwN0urKsmnXAMqP+CsWEsXRMioX6cjcU3 7jARS0aiaHD+zRA8EO39MHLa/apaKXUEpTvtbllbjEnQOqnSPmqa6QERlplS6PkLfl3C nn1qWMWTtcTugeD5zu0V6GvSjVgXIKlCAlwENbP9SIBLyXG5lUdi2q28txIGmC3/v0DL HKeg== X-Received: by 10.236.51.225 with SMTP id b61mr34475177yhc.4.1375280387704; Wed, 31 Jul 2013 07:19:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.107.129 with SMTP id hc1ls765793qeb.78.gmail; Wed, 31 Jul 2013 07:19:47 -0700 (PDT) X-Received: by 10.220.95.201 with SMTP id e9mr1572782vcn.71.1375280387578; Wed, 31 Jul 2013 07:19:47 -0700 (PDT) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id r5si343224vcr.64.2013.07.31.07.19.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.48 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.48; Received: by mail-vb0-f48.google.com with SMTP id w16so757413vbf.35 for ; Wed, 31 Jul 2013 07:19:47 -0700 (PDT) X-Received: by 10.52.109.69 with SMTP id hq5mr10621819vdb.85.1375280387439; Wed, 31 Jul 2013 07:19:47 -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 pc8csp239282vcb; Wed, 31 Jul 2013 07:19:46 -0700 (PDT) X-Received: by 10.66.219.38 with SMTP id pl6mr82459980pac.59.1375280386388; Wed, 31 Jul 2013 07:19:46 -0700 (PDT) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx.google.com with ESMTPS id x6si3153244pab.339.2013.07.31.07.19.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.54 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.54; Received: by mail-pb0-f54.google.com with SMTP id ro12so833106pbb.27 for ; Wed, 31 Jul 2013 07:19:45 -0700 (PDT) X-Received: by 10.66.157.68 with SMTP id wk4mr69902865pab.72.1375280385889; Wed, 31 Jul 2013 07:19:45 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id nm10sm2437646pbc.28.2013.07.31.07.19.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:45 -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 Subject: [PATCH 01/15] cpufreq: arm_big_little: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:10 +0530 Message-Id: <6afa40bd71534c32dcc660371239138742f23c41.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: ALoCoQlVf/eW89InHWcLs6igb1KyDX8v1o4B4MzdgvvXELuwBLKi6sFF/xvcxBcO7StxLKb/C59e 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.48 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. Signed-off-by: Viresh Kumar --- drivers/cpufreq/arm_big_little.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 3549f07..ba4d3b9 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c @@ -221,6 +221,7 @@ static struct cpufreq_driver bL_cpufreq_driver = { .init = bL_cpufreq_init, .exit = bL_cpufreq_exit, .have_governor_per_policy = true, + .owner = THIS_MODULE, .attr = bL_cpufreq_attr, };