From patchwork Wed Jul 31 14:19:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18700 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0547E248E6 for ; Wed, 31 Jul 2013 14:20:49 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id 15sf1003449vea.1 for ; Wed, 31 Jul 2013 07:20:48 -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=Br9l3FO+PK8xIwVkS3rrst1flyShhC3NpnMk/kuwCyI=; b=NJh0DgoKRE3SscGBW//dy6azxh9rVaMzxTgprcs8zgben2WnKv7K4iNNuSR53gN6n3 YJjlQU+tNEWE6ihNyRyuMpDdDxtsrLzkbZBI4Ew9VJGzMpXCTJlXvEZXrFAVIeVfuHpP 1frkAkY3wDplIL3ggasZ7Nbv4T+CoorXZlLu5ML+C8oHzKwBNB4AoKYcf3XU9GHlFohO z5Wnj6gbFLenBgvzG8uA7rMhu4B2kL6EMGvJd9nG9mUQaXIoX05QVIbkHFSBcXRqVDnX h4UpQj6nF4O5BruZcFwwQ5CqGnZIJFBvaoFAxfcyCgN2bbaRzOQIErNXj7/jgBbs68VJ vEnQ== X-Received: by 10.236.54.8 with SMTP id h8mr34903815yhc.11.1375280448744; Wed, 31 Jul 2013 07:20:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.195 with SMTP id gw3ls695764qeb.64.gmail; Wed, 31 Jul 2013 07:20:48 -0700 (PDT) X-Received: by 10.58.97.167 with SMTP id eb7mr28686068veb.45.1375280448624; Wed, 31 Jul 2013 07:20:48 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id tj1si347470vcb.33.2013.07.31.07.20.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 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.44; Received: by mail-vb0-f44.google.com with SMTP id e13so763925vbg.3 for ; Wed, 31 Jul 2013 07:20:48 -0700 (PDT) X-Received: by 10.58.187.4 with SMTP id fo4mr28923392vec.55.1375280448496; Wed, 31 Jul 2013 07:20:48 -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 pc8csp239345vcb; Wed, 31 Jul 2013 07:20:48 -0700 (PDT) X-Received: by 10.66.149.198 with SMTP id uc6mr81370169pab.61.1375280447644; Wed, 31 Jul 2013 07:20:47 -0700 (PDT) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by mx.google.com with ESMTPS id l2si3181397pan.228.2013.07.31.07.20.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.177 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.177; Received: by mail-pd0-f177.google.com with SMTP id u10so733855pdi.22 for ; Wed, 31 Jul 2013 07:20:47 -0700 (PDT) X-Received: by 10.68.130.163 with SMTP id of3mr40676889pbb.181.1375280447137; Wed, 31 Jul 2013 07:20:47 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id iu7sm2476872pbc.8.2013.07.31.07.20.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:46 -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 , Eric Miao Subject: [PATCH 09/15] cpufreq: pxa: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:18 +0530 Message-Id: <4389a861605420ef261dc7fb39955812320b8153.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: ALoCoQmfZBpGo0LvnyCeEIkMmZH8jBzDN7IqZ4kh6/XSx4NyXIJPtapuSJ4yH5E9tuGk0K+KM2Ni 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.44 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: Eric Miao Signed-off-by: Viresh Kumar --- drivers/cpufreq/pxa2xx-cpufreq.c | 1 + drivers/cpufreq/pxa3xx-cpufreq.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/cpufreq/pxa2xx-cpufreq.c b/drivers/cpufreq/pxa2xx-cpufreq.c index fb3981a..d62781b 100644 --- a/drivers/cpufreq/pxa2xx-cpufreq.c +++ b/drivers/cpufreq/pxa2xx-cpufreq.c @@ -468,6 +468,7 @@ static struct cpufreq_driver pxa_cpufreq_driver = { .target = pxa_set_target, .init = pxa_cpufreq_init, .get = pxa_cpufreq_get, + .owner = THIS_MODULE, .name = "PXA2xx", }; diff --git a/drivers/cpufreq/pxa3xx-cpufreq.c b/drivers/cpufreq/pxa3xx-cpufreq.c index 9c92ef0..81727ec 100644 --- a/drivers/cpufreq/pxa3xx-cpufreq.c +++ b/drivers/cpufreq/pxa3xx-cpufreq.c @@ -232,6 +232,7 @@ static struct cpufreq_driver pxa3xx_cpufreq_driver = { .target = pxa3xx_cpufreq_set, .init = pxa3xx_cpufreq_init, .get = pxa3xx_cpufreq_get, + .owner = THIS_MODULE, .name = "pxa3xx-cpufreq", };