From patchwork Sat May 7 16:58:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rabin Vincent X-Patchwork-Id: 764532 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 p47GwSjS028626 for ; Sat, 7 May 2011 16:58:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752298Ab1EGQ6Z (ORCPT ); Sat, 7 May 2011 12:58:25 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:41249 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067Ab1EGQ6Y (ORCPT ); Sat, 7 May 2011 12:58:24 -0400 Received: by pzk9 with SMTP id 9so1830685pzk.19 for ; Sat, 07 May 2011 09:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer; bh=TXWbOxBa79kDSv/0A20NHUus2vbcME6BevTnUFLzUVA=; b=VF38Gltu1vxCa4ZD1/srSsCfBvoKTCgTGnsxvTNeLusqSSLQeQ+aNzl4lP2F2fz43V YvGjNtAWl+f9fnZYpPNYmimwjKUFpgLCcOjOEC3sbY+DHT0bGIlYIwPEC7matNO4ZOoB 2wshnFQ2qtKI0GYv8wCoXLXr1xpq1wC0Knsgo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=oty0v8xNzrg63ut9MMSAQeZpAHIUyUinrmQ83x6bgMcG2zIh+yo2AnieUiHTpmOoIx 0VQxpkrMlVaRCNwGi4xmZXfTUgwxgSvOWr7uvU0z4YUDgn9jLSBbIv2w4lTj4vza05J+ nLoipL/2hQZTkC5VAXFstUgoq47SmnFuoqS1k= Received: by 10.68.55.98 with SMTP id r2mr6767108pbp.66.1304787504386; Sat, 07 May 2011 09:58:24 -0700 (PDT) Received: from localhost.localdomain ([59.164.102.208]) by mx.google.com with ESMTPS id y5sm2917745pbq.57.2011.05.07.09.58.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 07 May 2011 09:58:22 -0700 (PDT) From: Rabin Vincent To: tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rabin Vincent Subject: [PATCH] OMAP4: fix return value of omap4_l3_init Date: Sat, 7 May 2011 22:28:47 +0530 Message-Id: <1304787527-8314-1-git-send-email-rabin@rab.in> X-Mailer: git-send-email 1.7.4.1 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]); Sat, 07 May 2011 16:58:29 +0000 (UTC) Don't PTR_ERR() a non-error pointer: initcall omap4_l3_init+0x0/0xdc returned -544980480 after 0 usecs initcall omap4_l3_init+0x0/0xdc returned with error code -544980480 Signed-off-by: Rabin Vincent --- arch/arm/mach-omap2/devices.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 7b85585..5b8ca68 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -97,7 +97,7 @@ static int __init omap4_l3_init(void) WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name); - return PTR_ERR(od); + return IS_ERR(od) ? PTR_ERR(od) : 0; } postcore_initcall(omap4_l3_init);