From patchwork Wed Jul 31 14:19:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18696 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6681F248E6 for ; Wed, 31 Jul 2013 14:20:17 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf940490vbh.5 for ; Wed, 31 Jul 2013 07:20:17 -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=8bfly5Ak/5926X1hPtRs9xmOIzn5SLByRB56FBS4Y7s=; b=l66m7rJd0oR1a0crk788ZtLRvjAS4jyKWN241blFJYLVRz9nYQA0EIg21y3jqOWsx7 FGo8LbqKMQUedxDP2VFlkaGyLsxOGMxSvpFx1dyhfVbqNeqP675TpRRYAeY3rNG76r08 rG2QPckRtcODhVnip7vu5F9FCJwTqsc5EkoUl0PTBtuKZ15c2ctBkOzrzwh81zg0zodQ WgNBeFkVHdkcUJhrilS2Ss+MUDDA2o29TYu4wyC2cC/UlJhG8OH34M/Z/Zq6YtzqLkti cBMKjbPLv1EasxkmKr27CI6wNeS98GAYy/YBsk74Y8wOBkgba2MprvfXM/kTCe9hdPYg 7VAA== X-Received: by 10.236.119.227 with SMTP id n63mr35450252yhh.38.1375280417182; Wed, 31 Jul 2013 07:20:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.26.234 with SMTP id o10ls662740qeg.27.gmail; Wed, 31 Jul 2013 07:20:17 -0700 (PDT) X-Received: by 10.58.207.195 with SMTP id ly3mr28767647vec.77.1375280417060; Wed, 31 Jul 2013 07:20:17 -0700 (PDT) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id rx10si346132vdc.47.2013.07.31.07.20.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.54 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.54; Received: by mail-vb0-f54.google.com with SMTP id q14so742440vbe.41 for ; Wed, 31 Jul 2013 07:20:17 -0700 (PDT) X-Received: by 10.52.160.197 with SMTP id xm5mr6926462vdb.48.1375280416861; Wed, 31 Jul 2013 07:20:16 -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 pc8csp239312vcb; Wed, 31 Jul 2013 07:20:16 -0700 (PDT) X-Received: by 10.68.189.103 with SMTP id gh7mr16619874pbc.142.1375280415689; Wed, 31 Jul 2013 07:20:15 -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 qf5si3157743pac.327.2013.07.31.07.20.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:15 -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 u10so733281pdi.22 for ; Wed, 31 Jul 2013 07:20:15 -0700 (PDT) X-Received: by 10.66.26.194 with SMTP id n2mr72513872pag.151.1375280415200; Wed, 31 Jul 2013 07:20:15 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id ts6sm2467639pbc.12.2013.07.31.07.20.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 07:20:14 -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 05/15] cpufreq: exynos: initialize .owner field with THIS_MODULE Date: Wed, 31 Jul 2013 19:49:14 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQnLsuSzFss7jfhU00MHAgMFGwlY+mct9bqtKIGzGFYVYe7TvoqZj/dPJJAgyHkH6vETjeb/ 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.54 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/exynos-cpufreq.c | 1 + drivers/cpufreq/exynos5440-cpufreq.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 0d32f02..fe0bbce 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -278,6 +278,7 @@ static struct cpufreq_driver exynos_driver = { .init = exynos_cpufreq_cpu_init, .exit = exynos_cpufreq_cpu_exit, .name = "exynos_cpufreq", + .owner = THIS_MODULE, .attr = exynos_cpufreq_attr, #ifdef CONFIG_PM .suspend = exynos_cpufreq_suspend, diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index 0c74018..d0d353c 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -344,6 +344,7 @@ static struct cpufreq_driver exynos_driver = { .target = exynos_target, .get = exynos_getspeed, .init = exynos_cpufreq_cpu_init, + .owner = THIS_MODULE, .name = CPUFREQ_NAME, };