From patchwork Sat Aug 10 06:43:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 18936 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 62E86246EB for ; Sat, 10 Aug 2013 06:48:08 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf390363vbg.2 for ; Fri, 09 Aug 2013 23:48:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=ajV0jqrt9m8h69bePVnBWMOautK26/WJaD75tyQZ4/k=; b=YveXAFCHcstD6UbDoYszLvjPliEvq1s1GBRM09ZhPCv8bL6LBxa7t8jcJxizcMDg76 ibQkdOQsPrpPgmTjCSf/S0dB0yMP/GRjIahHsc/B8GaB/PWdcseuKdg3JvpZ9OYh+SNN /Vjt2CBBIA40WHwGKNciSbQlqMOuDQ4nReGaQMqa3X4pyjMa8jLq+rJZuv4I3Mxo1LR6 534Ts9jFrS9dDSEYakRlmk+9S5k+w4HJ1UjS7LxXst6nvsojJFb0P3JzxZQbHXz7fUVA Bmr1nvF92fENBvqf6quLdUXlw8xutm8b4/G2bAXF3gskfOgGeS0o+NX4LmM99B9R3KTE dpng== X-Received: by 10.236.74.169 with SMTP id x29mr6891532yhd.34.1376117288047; Fri, 09 Aug 2013 23:48:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.137 with SMTP id 9ls1223089qee.37.gmail; Fri, 09 Aug 2013 23:48:07 -0700 (PDT) X-Received: by 10.52.161.33 with SMTP id xp1mr1860798vdb.55.1376117287926; Fri, 09 Aug 2013 23:48:07 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id y4si5674910vej.113.2013.08.09.23.48.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 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.174; Received: by mail-ve0-f174.google.com with SMTP id d10so4439974vea.5 for ; Fri, 09 Aug 2013 23:48:07 -0700 (PDT) X-Gm-Message-State: ALoCoQkO1zDHyhI9p0bLa0NSBUVEeCIiMU4STGFwA93JovhN6NC3HmuUpXbMmM0EtXJIYh3hY9ic X-Received: by 10.52.180.229 with SMTP id dr5mr6455857vdc.20.1376117287835; Fri, 09 Aug 2013 23:48:07 -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.220.174.196 with SMTP id u4csp86vcz; Fri, 9 Aug 2013 23:48:07 -0700 (PDT) X-Received: by 10.68.226.234 with SMTP id rv10mr15194497pbc.1.1376117287033; Fri, 09 Aug 2013 23:48:07 -0700 (PDT) Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by mx.google.com with ESMTPS id xx4si15774378pab.139.2013.08.09.23.48.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.175 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.192.175; Received: by mail-pd0-f175.google.com with SMTP id q10so1392539pdj.34 for ; Fri, 09 Aug 2013 23:48:06 -0700 (PDT) X-Received: by 10.66.50.104 with SMTP id b8mr4105106pao.39.1376117286516; Fri, 09 Aug 2013 23:48:06 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id 7sm26623012paf.22.2013.08.09.23.48.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 09 Aug 2013 23:48:05 -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, Viresh Kumar , Kukjin Kim Subject: [PATCH 03/44] cpufreq: exynos: call cpufreq_frequency_table_put_attr() Date: Sat, 10 Aug 2013 12:13:59 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: 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.174 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: , Drivers which have an exit path must call cpufreq_frequency_table_put_attr() if they have called cpufreq_frequency_table_get_attr() in their init path. This driver was missing this part and is fixed with this patch. Cc: Kukjin Kim Signed-off-by: Viresh Kumar Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim --- drivers/cpufreq/exynos5440-cpufreq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index 1ac93e0..b9dfc91 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -336,12 +336,18 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) return 0; } +static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) +{ + cpufreq_frequency_table_put_attr(policy->cpu); +} + static struct cpufreq_driver exynos_driver = { .flags = CPUFREQ_STICKY, .verify = exynos_verify_speed, .target = exynos_target, .get = exynos_getspeed, .init = exynos_cpufreq_cpu_init, + .exit = exynos_cpufreq_cpu_exit, .name = CPUFREQ_NAME, };