From patchwork Tue Dec 15 16:36:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 67667 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBFGZ5Vt025655 for ; Tue, 15 Dec 2009 16:35:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759461AbZLOQez (ORCPT ); Tue, 15 Dec 2009 11:34:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759624AbZLOQex (ORCPT ); Tue, 15 Dec 2009 11:34:53 -0500 Received: from gv-out-0910.google.com ([216.239.58.189]:50098 "EHLO gv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759461AbZLOQew (ORCPT ); Tue, 15 Dec 2009 11:34:52 -0500 Received: by gv-out-0910.google.com with SMTP id r4so8316gve.37 for ; Tue, 15 Dec 2009 08:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=xO0Xs+ICq5JE0OStzTmHDhB8CNcf8TcM4m0MC3DF6IQ=; b=nQZCXhGKbJ/cwLDDTl2BOrKn2P6da8c68MfeUu/RqU7CwfTzLSUUM6jOO1K9+9AQPM FJ65PM45M/cuz3tv8a9j+z05F+IHvU1rymPWI/mk84kkGvgOWJ+Pslt4F+sDMQXrYni5 es5d3PpNj6VnRlL/wyGF1PnRX2Bc4Q6tS6JAU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=od2QlmRxW3IP6ExASioZLlOTsDS4dhmLtYxnayyMLqCqDTHTUkOoWd5QEvWOWEK6qe OdVAuJj6Vxn6lvdWVR4ncgREM2Xs3cB3Lkyq/M33H6zv/sQmXzJBPaQnbPVqKSI1wKOU BNIcfrxGbQBvUKZKXrd4Q6aFLUOrleJaEM47g= Received: by 10.102.235.35 with SMTP id i35mr2784164muh.19.1260894885972; Tue, 15 Dec 2009 08:34:45 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 25sm4950285mul.20.2009.12.15.08.34.45 (version=SSLv3 cipher=RC4-MD5); Tue, 15 Dec 2009 08:34:45 -0800 (PST) Message-ID: <4B27BB12.1050008@gmail.com> Date: Tue, 15 Dec 2009 17:36:34 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4 MIME-Version: 1.0 To: Paul Mundt , linux-sh@vger.kernel.org, Andrew Morton , LKML Subject: [PATCH] sh: Fix test of unsigned in se7722_irq_demux() Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/boards/mach-se/7722/irq.c b/arch/sh/boards/mach-se/7722/irq.c index 4eb31ac..b221b68 100644 --- a/arch/sh/boards/mach-se/7722/irq.c +++ b/arch/sh/boards/mach-se/7722/irq.c @@ -57,15 +57,16 @@ static void se7722_irq_demux(unsigned int irq, struct irq_desc *desc) */ void __init init_se7722_IRQ(void) { - int i; + int i, irq; ctrl_outw(0, IRQ01_MASK); /* disable all irqs */ ctrl_outw(0x2000, 0xb03fffec); /* mrshpc irq enable */ for (i = 0; i < SE7722_FPGA_IRQ_NR; i++) { - se7722_fpga_irq[i] = create_irq(); - if (se7722_fpga_irq[i] < 0) + irq = create_irq(); + if (irq < 0) return; + se7722_fpga_irq[i] = irq; set_irq_chip_and_handler_name(se7722_fpga_irq[i], &se7722_irq_chip,