From patchwork Thu Mar 24 16:35:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Koskinen, Aaro (Nokia - FI/Espoo)" X-Patchwork-Id: 659171 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2OGcrDF012108 for ; Thu, 24 Mar 2011 16:38:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752420Ab1CXQiy (ORCPT ); Thu, 24 Mar 2011 12:38:54 -0400 Received: from smtp.nokia.com ([147.243.128.26]:29107 "EHLO mgw-da02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219Ab1CXQiv (ORCPT ); Thu, 24 Mar 2011 12:38:51 -0400 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p2OGclOn007501; Thu, 24 Mar 2011 18:38:47 +0200 Received: from localhost.localdomain ([helruo-dhcp02150.ntc.nokia.com [172.21.21.50]]) by mgw-da02.nokia.com with RELAY id p2OGc6Qh006960 ; Thu, 24 Mar 2011 18:38:18 +0200 From: Aaro Koskinen To: tony@atomide.com, khilman@ti.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Aaro Koskinen Subject: [PATCH 2/6] arm: mach-omap2: smartreflex: fix sr_late_init() error path in probe Date: Thu, 24 Mar 2011 18:35:31 +0200 Message-Id: <1300984535-10530-2-git-send-email-aaro.koskinen@nokia.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1300984535-10530-1-git-send-email-aaro.koskinen@nokia.com> References: <1300984535-10530-1-git-send-email-aaro.koskinen@nokia.com> X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 24 Mar 2011 16:38:55 +0000 (UTC) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 8f674c9..6dfc8db 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -883,7 +883,7 @@ static int __init omap_sr_probe(struct platform_device *pdev) ret = sr_late_init(sr_info); if (ret) { pr_warning("%s: Error in SR late init\n", __func__); - goto err_release_region; + return ret; } }