From patchwork Wed Jul 31 14:19:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18701 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0072D248E6 for ; Wed, 31 Jul 2013 14:20:56 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 6sf989955qeb.9 for ; Wed, 31 Jul 2013 07:20:56 -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=wpTI3aoivqki7oXG8yc1opcMVNuwAJxj4LXuv9PcLfw=; b=QzP1VDzZtrdx0LhzM6IbCNG4FFbph0/ZsuYU8pqp5f+X/oYx2glh3vP7Z0VHzZT2fK 0tKoceCaW/2FUXkjj8XzcvEj/8XmWOJg/5v/msOF8olI5vJd4JpjBr7s4eZW7U2/iCzD MHK+LLV7jrk4gTMTXBUK3bGeGjqvWF/IOukgO/jPdPr7XuMhbkykdCRGkJyPEU4H60cN cAH3zwGXUY37H/osJYNLgrQVWWMlxaoBCmHBC5EON0/sCzzMJPzVPX0W0fklahre2zzT RSEDvSv2LHumAJsRh7sL8tSHHSE1wu0V4jUoNt7regOYLW+jpD+lyRU8HS2ps+eddpN9 6cuA== X-Received: by 10.236.169.196 with SMTP id n44mr35666217yhl.9.1375280456769; Wed, 31 Jul 2013 07:20:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.104 with SMTP id lj8ls729177qeb.11.gmail; Wed, 31 Jul 2013 07:20:56 -0700 (PDT) X-Received: by 10.220.1.9 with SMTP id 9mr11771727vcd.37.1375280456618; Wed, 31 Jul 2013 07:20:56 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ts7si255841vcb.48.2013.07.31.07.20.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id b10so811703vea.21 for ; Wed, 31 Jul 2013 07:20:56 -0700 (PDT) X-Received: by 10.52.160.197 with SMTP id xm5mr6927218vdb.48.1375280456485; Wed, 31 Jul 2013 07:20:56 -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 pc8csp239357vcb; Wed, 31 Jul 2013 07:20:56 -0700 (PDT) X-Received: by 10.68.52.200 with SMTP id v8mr80788098pbo.48.1375280455358; Wed, 31 Jul 2013 07:20:55 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id wj7si3186625pab.206.2013.07.31.07.20.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id z11so62529pdj.17 for ; Wed, 31 Jul 2013 07:20:54 -0700 (PDT) X-Received: by 10.68.59.98 with SMTP id y2mr79504746pbq.135.1375280454515; Wed, 31 Jul 2013 07:20:54 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id nm10sm2443196pbc.28.2013.07.31.07.20.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:53 -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 , Kukjin Kim Subject: [PATCH 10/15] cpufreq: s3c24xx: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:19 +0530 Message-Id: <08ebac0313328bb7f9701417920e6668861d98be.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: ALoCoQmZuoSG7B4CMFGSKxOP03cSJ03s9qVWjatMfOVcOXmiK1aKSNFt92iqtJLEGkQEwYuu2fe0 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.176 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: Kukjin Kim Signed-off-by: Viresh Kumar --- drivers/cpufreq/s3c24xx-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index 87781eb..c5a46cc 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -479,6 +479,7 @@ static struct cpufreq_driver s3c24xx_driver = { .init = s3c_cpufreq_init, .suspend = s3c_cpufreq_suspend, .resume = s3c_cpufreq_resume, + .owner = THIS_MODULE, .name = "s3c24xx", };