From patchwork Mon Jun 15 09:25:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hiroshi DOYU X-Patchwork-Id: 30287 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5F9PnSX020447 for ; Mon, 15 Jun 2009 09:25:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752018AbZFOJZo (ORCPT ); Mon, 15 Jun 2009 05:25:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752373AbZFOJZo (ORCPT ); Mon, 15 Jun 2009 05:25:44 -0400 Received: from smtp.nokia.com ([192.100.105.134]:24868 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbZFOJZo (ORCPT ); Mon, 15 Jun 2009 05:25:44 -0400 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n5F9P892007569; Mon, 15 Jun 2009 04:25:47 -0500 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 15 Jun 2009 12:25:37 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 15 Jun 2009 12:25:36 +0300 Received: from oreo.research.nokia.com (esdhcp04130.research.nokia.com [172.21.41.30]) by mgw-da02.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n5F9PVRT028454 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 15 Jun 2009 12:25:32 +0300 Received: from doyu by oreo.research.nokia.com with local (Exim 4.69) (envelope-from ) id 1MG8RZ-0005ZD-DH; Mon, 15 Jun 2009 12:25:33 +0300 From: Hiroshi DOYU To: linux-omap@vger.kernel.org Cc: ext Roel Kluin , Hiroshi DOYU Subject: [PATCH 1/1] omap mailbox: platform_get_irq() error ignored Date: Mon, 15 Jun 2009 12:25:33 +0300 Message-Id: <1245057933-21380-1-git-send-email-Hiroshi.DOYU@nokia.com> X-Mailer: git-send-email 1.6.0.4 X-OriginalArrivalTime: 15 Jun 2009 09:25:37.0079 (UTC) FILETIME=[3DE34C70:01C9ED9B] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index fd5b8a5..6f71f37 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c @@ -282,12 +282,12 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev) return -ENOMEM; /* DSP or IVA2 IRQ */ - mbox_dsp_info.irq = platform_get_irq(pdev, 0); - if (mbox_dsp_info.irq < 0) { + ret = platform_get_irq(pdev, 0); + if (ret < 0) { dev_err(&pdev->dev, "invalid irq resource\n"); - ret = -ENODEV; goto err_dsp; } + mbox_dsp_info.irq = ret; ret = omap_mbox_register(&pdev->dev, &mbox_dsp_info); if (ret)