From patchwork Tue Oct 1 13:33:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep KarkadaNagesha X-Patchwork-Id: 2970041 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1C185BFF0C for ; Tue, 1 Oct 2013 13:32:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1EB722041F for ; Tue, 1 Oct 2013 13:32:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F03452041C for ; Tue, 1 Oct 2013 13:32:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753334Ab3JANcp (ORCPT ); Tue, 1 Oct 2013 09:32:45 -0400 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:36895 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753248Ab3JANco (ORCPT ); Tue, 1 Oct 2013 09:32:44 -0400 Received: from e103737-lin.cambridge.arm.com (e103737-lin.cambridge.arm.com [10.1.207.34]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id r91DWbkn007353; Tue, 1 Oct 2013 14:32:41 +0100 (BST) From: Sudeep KarkadaNagesha To: cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Cc: Sudeep.KarkadaNagesha@arm.com, Sudeep KarkadaNagesha , "Rafael J. Wysocki" , Viresh Kumar Subject: [PATCH v2 5/5] cpufreq: arm_big_little_dt: return success if OPP list already exists Date: Tue, 1 Oct 2013 14:33:02 +0100 Message-Id: <1380634382-15609-6-git-send-email-Sudeep.KarkadaNagesha@arm.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1380634382-15609-1-git-send-email-Sudeep.KarkadaNagesha@arm.com> References: <1380634382-15609-1-git-send-email-Sudeep.KarkadaNagesha@arm.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sudeep KarkadaNagesha of_init_opp_table returns -EEXIST if an OPP list is already associated with the device, before attempting to re-initialise it. In such cases, dt_init_opp_table must return success as OPP table is initialised. Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Signed-off-by: Sudeep KarkadaNagesha Acked-by: Viresh Kumar --- drivers/cpufreq/arm_big_little_dt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c index b03d4fe..cc5d92e 100644 --- a/drivers/cpufreq/arm_big_little_dt.c +++ b/drivers/cpufreq/arm_big_little_dt.c @@ -56,6 +56,8 @@ static int dt_init_opp_table(struct device *cpu_dev) } ret = of_init_opp_table(cpu_dev); + if (ret == -EEXIST) + ret = 0; of_node_put(np); return ret;