From patchwork Wed Aug 4 11:32:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 117002 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o74BWdBw023288 for ; Wed, 4 Aug 2010 11:32:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757604Ab0HDLcj (ORCPT ); Wed, 4 Aug 2010 07:32:39 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:61203 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755789Ab0HDLci (ORCPT ); Wed, 4 Aug 2010 07:32:38 -0400 Received: from muru.com ([72.249.23.125] helo=baageli.muru.com) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1OgcD5-0000z7-0I; Wed, 04 Aug 2010 11:32:35 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 72.249.23.125 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19zBfpQk8UU93Wk2mU831g6 Subject: [PATCH 1/3] omap: device: improve errors handling To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: Nishanth Menon , Artem Bityutskiy , Paul Walmsley , linux-omap@vger.kernel.org Date: Wed, 04 Aug 2010 14:32:59 +0300 Message-ID: <20100804113259.25027.47129.stgit@baageli.muru.com> In-Reply-To: <20100804112916.25027.94640.stgit@baageli.muru.com> References: <20100804112916.25027.94640.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 (demeter.kernel.org [140.211.167.41]); Wed, 04 Aug 2010 11:32:40 +0000 (UTC) diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index ea0d659..d2b1609 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c @@ -407,7 +407,9 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id, od->pdev.num_resources = res_count; od->pdev.resource = res; - platform_device_add_data(&od->pdev, pdata, pdata_len); + ret = platform_device_add_data(&od->pdev, pdata, pdata_len); + if (ret) + goto odbs_exit4; od->pm_lats = pm_lats; od->pm_lats_cnt = pm_lats_cnt;