Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932276AbVKUMmD (ORCPT ); Mon, 21 Nov 2005 07:42:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932279AbVKUMmD (ORCPT ); Mon, 21 Nov 2005 07:42:03 -0500 Received: from pxy2nd.nifty.com ([202.248.175.14]:999 "HELO pxy2nd.nifty.com") by vger.kernel.org with SMTP id S932276AbVKUMmB (ORCPT ); Mon, 21 Nov 2005 07:42:01 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=pxy2nd-default; d=nifty.com; b=b8A9LUzyeon1sj6HO6OjzCI6yAMKlZJAT+YmDzUGJlqouaA+i9w5Ec2IdeObeUTvrHPLKtg1ityMJc7GqXA6yA== ; Message-ID: <1988091.1132576919549.komurojun-mbn@nifty.com> Date: Mon, 21 Nov 2005 21:41:59 +0900 (JST) From: Komuro To: Matthew Wilcox Subject: Re: [PATCH 3/5] Fix pd6729.c on architectures which define NO_IRQ Cc: linux-kernel@vger.kernel.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: @nifty Webmail 2.0 References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 52 Thanks for pointing this out! I have misused the NO_IRQ definition. Best Regards Komuro > >Use pci_valid_irq() instead of a custom NO_IRQ definition. > >Signed-off-by: Matthew Wilcox >Acked-by: Ingo Molnar > >--- > > drivers/pcmcia/pd6729.c | 6 +----- > 1 files changed, 1 insertions(+), 5 deletions(-) > >applies-to: 26750e45f268b109d418c91b01a55e124bd879e1 >fd1b59b22f926ee7daa097166d9e7ac6005b1284 >diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c >index 20642f0..72720f2 100644 >--- a/drivers/pcmcia/pd6729.c >+++ b/drivers/pcmcia/pd6729.c >@@ -39,10 +39,6 @@ MODULE_AUTHOR("Jun Komuro */ > #define to_cycles(ns) ((ns)/120) > >-#ifndef NO_IRQ >-#define NO_IRQ ((unsigned int)(0)) >-#endif >- > /* > * PARAMETERS > * irq_mode=n >@@ -733,7 +729,7 @@ static int __devinit pd6729_pci_probe(st > goto err_out_disable; > } > >- if (dev->irq == NO_IRQ) >+ if (!pci_valid_irq(dev->irq)) > irq_mode = 0; /* fall back to ISA interrupt mode */ > > mask = pd6729_isa_scan(); >--- >0.99.8.GIT - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/