From patchwork Fri Nov 12 01:03:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 318492 X-Patchwork-Delegate: tony@atomide.com 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 oAC13fHE022146 for ; Fri, 12 Nov 2010 01:03:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757061Ab0KLBDk (ORCPT ); Thu, 11 Nov 2010 20:03:40 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:51164 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756699Ab0KLBDj (ORCPT ); Thu, 11 Nov 2010 20:03:39 -0500 Received: from c-67-188-36-105.hsd1.ca.comcast.net ([67.188.36.105] helo=baageli.muru.com) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1PGi3H-0002sn-CX; Fri, 12 Nov 2010 01:03:39 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.188.36.105 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/sMcpLh4Y9RQLd+ZqqWJ+p Subject: [PATCH 4/4] arm: omap1: devices: need to return with a value To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: linux-omap@vger.kernel.org, Felipe Balbi Date: Thu, 11 Nov 2010 17:03:34 -0800 Message-ID: <20101112010334.3827.77064.stgit@baageli.muru.com> In-Reply-To: <20101112010245.3827.75329.stgit@baageli.muru.com> References: <20101112010245.3827.75329.stgit@baageli.muru.com> User-Agent: StGit/0.15 MIME-Version: 1.0 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.3 (demeter1.kernel.org [140.211.167.41]); Fri, 12 Nov 2010 01:03:41 +0000 (UTC) diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index ea0d80a..e7f9ee6 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c @@ -321,10 +321,9 @@ static struct platform_device omap_wdt_device = { static int __init omap_init_wdt(void) { if (!cpu_is_omap16xx()) - return; + return -ENODEV; - platform_device_register(&omap_wdt_device); - return 0; + return platform_device_register(&omap_wdt_device); } subsys_initcall(omap_init_wdt); #endif