From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 966A6DE015 for ; Wed, 23 Jul 2008 03:56:40 +1000 (EST) Date: Tue, 22 Jul 2008 12:55:08 -0500 From: Scott Wood To: Duy-Ky Nguyen Subject: Re: Failure of request_irq() for MPC8313 using arch=powerpc Message-ID: <20080722175508.GA13940@loki.buserror.net> References: <58A20A281BAF1047B4EAE68DE5C0BDC2010573E9@zch01exm21.fsl.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Liu Dave , linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jul 15, 2008 at 08:43:59PM -0700, Duy-Ky Nguyen wrote: > Hi Dave, > > I've just tried it and it failed. Could you elaborate on exactly what you tried? Did you pass the GPIO device tree node? > Before I had tried using the function > int virq = of_irq_to_resource(GPIO_IRQ, 0, NULL); > and it failed the same way The first argument of of_irq_to_resource is a device node pointer, not an IRQ number. Surely the compiler warned you about this. -Scott