From patchwork Wed Jul 31 14:19:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18694 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 344BF248E6 for ; Wed, 31 Jul 2013 14:20:02 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf43919ghy.3 for ; Wed, 31 Jul 2013 07:20:01 -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=+GVG4Fq5ScUDyicbr/tTHLt39YlYAHmgGVYjsjFbFLY=; b=Jq/erhr3jNno8OyquwSuXwS48c2+h/tv+MCdwD18iikzM8C/zkfQEmw5TfX4SW/3kZ B35R2LYTglkOSILCnkZ/ynohcvlpY47M7kIskYmnBniDIEidUYhzb70n/OkKSnrDgpZf ntCkn+BKSCYDjKKOBciUN+MqZYzbg0bPT9rcQQtSOPfwd6rWs90Xsg4D3joo2Dml1T8u 4kFNSgdielJI1VBha6mt/F0+XcM8BER28ivQkmg/ZlBcQJ3Rx18G9XL+M+gLtvAM8ZX+ ECEIR8KOUBSaHejKwCy+cpv4Hviqk+pE8hwV6/hrnNrTGf4gVzOLa2q82GfquLmbwrXq OiUg== X-Received: by 10.236.125.200 with SMTP id z48mr34997724yhh.55.1375280401847; Wed, 31 Jul 2013 07:20:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.60.70 with SMTP id f6ls688813qer.59.gmail; Wed, 31 Jul 2013 07:20:01 -0700 (PDT) X-Received: by 10.58.118.8 with SMTP id ki8mr28437245veb.84.1375280401702; Wed, 31 Jul 2013 07:20:01 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id pa20si345498veb.52.2013.07.31.07.20.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id ox1so814328veb.23 for ; Wed, 31 Jul 2013 07:20:01 -0700 (PDT) X-Received: by 10.52.180.229 with SMTP id dr5mr3957330vdc.20.1375280401570; Wed, 31 Jul 2013 07:20:01 -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 pc8csp239296vcb; Wed, 31 Jul 2013 07:20:01 -0700 (PDT) X-Received: by 10.68.249.68 with SMTP id ys4mr27100391pbc.159.1375280400528; Wed, 31 Jul 2013 07:20:00 -0700 (PDT) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by mx.google.com with ESMTPS id yk3si3187631pac.186.2013.07.31.07.20.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.53 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.53; Received: by mail-pb0-f53.google.com with SMTP id up15so828616pbc.26 for ; Wed, 31 Jul 2013 07:20:00 -0700 (PDT) X-Received: by 10.66.139.193 with SMTP id ra1mr55654761pab.70.1375280400135; Wed, 31 Jul 2013 07:20:00 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ue9sm4831899pab.7.2013.07.31.07.19.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:19:59 -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 , Sekhar Nori Subject: [PATCH 03/15] cpufreq: davinci: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:12 +0530 Message-Id: <506b1adf0161498d0f94aacb4c5f22de96839771.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: ALoCoQn/arLGmbFmMkr+MnbGd0jxNhWhKg/4Ss1nS9w5YnD8bGlDRNAu0RKW/V+HUaGJhFtDe9gc 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.128.178 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: Sekhar Nori Signed-off-by: Viresh Kumar --- drivers/cpufreq/davinci-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/davinci-cpufreq.c b/drivers/cpufreq/davinci-cpufreq.c index 551dd65..db30e54 100644 --- a/drivers/cpufreq/davinci-cpufreq.c +++ b/drivers/cpufreq/davinci-cpufreq.c @@ -178,6 +178,7 @@ static struct cpufreq_driver davinci_driver = { .init = davinci_cpu_init, .exit = davinci_cpu_exit, .name = "davinci", + .owner = THIS_MODULE, .attr = davinci_cpufreq_attr, };