From patchwork Fri Sep 13 12:59:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20104 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 82929202E6 for ; Fri, 13 Sep 2013 13:08:58 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id c41sf1233921yho.4 for ; Fri, 13 Sep 2013 06:08:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version: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=PQWdcJ8t20fZ5qug9kcqcJN28NKXwPXqC1HVk76CsYs=; b=lbuHtP6ivu02dt5SFel5kIy+4dUuCkR1Cxy6smxKvlq5VBrLCCfMeqkVeoSwIU5PuN VoWhnK+PfrERu9xRZw/XEc0478B2D79fFjH06oXVTrmaKH5DRM7nlz25fo//pEoY8mzB VMtMGq5PJI1K45cvCmElstuX/EiaEacMRb9K5R5qWDZrURP9utkaZsyruF9h7fyxRyHB lT4zWiZKCUamg0xsi6F3wCW5yYFn9Y42fKT/jaeWdygKCM6k6WWELHngOb0iwuLuPtWr 1zGaDNjMTJmiqMtqx1Q3SBV89dk3noQVwEug3TrcuSAEzCyu/QneOzmew6ioC3sk6MyW rYgw== X-Gm-Message-State: ALoCoQmNhPm71ni4ohXFP17wCf8/PeLlVO+7H+DPpdJJ0PpTuyZ3XDrntnUTzNVZftlNZxY9xvcc X-Received: by 10.236.52.228 with SMTP id e64mr4815776yhc.45.1379077738277; Fri, 13 Sep 2013 06:08:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.230 with SMTP id d6ls1170491qey.93.gmail; Fri, 13 Sep 2013 06:08:58 -0700 (PDT) X-Received: by 10.221.40.10 with SMTP id to10mr6903702vcb.22.1379077738029; Fri, 13 Sep 2013 06:08:58 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id v6si3100034vet.76.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.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.220.174; Received: by mail-vc0-f174.google.com with SMTP id gd11so893273vcb.33 for ; Fri, 13 Sep 2013 06:08:58 -0700 (PDT) X-Received: by 10.52.110.98 with SMTP id hz2mr9194533vdb.1.1379077737945; Fri, 13 Sep 2013 06:08:57 -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 u4csp79745vcz; Fri, 13 Sep 2013 06:08:57 -0700 (PDT) X-Received: by 10.68.130.1 with SMTP id oa1mr13438702pbb.35.1379077736927; Fri, 13 Sep 2013 06:08:56 -0700 (PDT) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx.google.com with ESMTPS id gg2si11158682pac.217.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id rr4so1211882pbb.34 for ; Fri, 13 Sep 2013 06:08:56 -0700 (PDT) X-Received: by 10.68.217.34 with SMTP id ov2mr1370631pbc.204.1379077736517; Fri, 13 Sep 2013 06:08:56 -0700 (PDT) Received: from localhost ([122.167.78.148]) by mx.google.com with ESMTPSA id qa9sm11690003pbc.7.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:08:55 -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, linux-arm-kernel@lists.infradead.org, Viresh Kumar Subject: [PATCH 050/228] cpufreq: exynos: call cpufreq_frequency_table_put_attr() Date: Fri, 13 Sep 2013 18:29:56 +0530 Message-Id: <9c9521dc5cea729915ad890a6fe8ffed39fa1a7e.1379063063.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-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.220.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. Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim Signed-off-by: Viresh Kumar --- 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 83bd700..e041f5e 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -342,12 +342,18 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) return 0; } +static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy) +{ + cpufreq_frequency_table_put_attr(policy->cpu); +} + static struct cpufreq_driver exynos_driver = { .flags = CPUFREQ_STICKY | CPUFREQ_ASYNC_NOTIFICATION, .verify = exynos_verify_speed, .target = exynos_target, .get = exynos_getspeed, .init = exynos_cpufreq_cpu_init, + .exit = exynos_cpufreq_cpu_exit, .name = CPUFREQ_NAME, };