Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Wolfram Sang
Hi, > >> @@ -275,8 +276,8 @@ static int __devinit ocores_i2c_probe(struct > >> platform_device *pdev) > >>if (!res) > >>return -ENODEV; > >> > >> - res2 = platform_get_resource(pdev, IORESOURCE_IRQ, 0); > >> - if (!res2) > >> + irq = platform_get_irq(pdev, 0); > >> + if

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Rob Herring
On 11/13/2012 05:10 AM, Wolfram Sang wrote: > Hi, > > On Mon, Nov 12, 2012 at 05:59:50PM +0100, Andreas Larsson wrote: >> Add sparc support by using platform_get_irq instead of platform_get_resource. >> There are no platform resources of type IORESOURCE_IRQ for sparc, but >> platform_get_irq

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Wolfram Sang
Hi, On Mon, Nov 12, 2012 at 05:59:50PM +0100, Andreas Larsson wrote: > Add sparc support by using platform_get_irq instead of platform_get_resource. > There are no platform resources of type IORESOURCE_IRQ for sparc, but > platform_get_irq works for sparc. In the non-sparc case platform_get_irq >

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Wolfram Sang
Hi, On Mon, Nov 12, 2012 at 05:59:50PM +0100, Andreas Larsson wrote: Add sparc support by using platform_get_irq instead of platform_get_resource. There are no platform resources of type IORESOURCE_IRQ for sparc, but platform_get_irq works for sparc. In the non-sparc case platform_get_irq

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Rob Herring
On 11/13/2012 05:10 AM, Wolfram Sang wrote: Hi, On Mon, Nov 12, 2012 at 05:59:50PM +0100, Andreas Larsson wrote: Add sparc support by using platform_get_irq instead of platform_get_resource. There are no platform resources of type IORESOURCE_IRQ for sparc, but platform_get_irq works for

Re: [PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-13 Thread Wolfram Sang
Hi, @@ -275,8 +276,8 @@ static int __devinit ocores_i2c_probe(struct platform_device *pdev) if (!res) return -ENODEV; - res2 = platform_get_resource(pdev, IORESOURCE_IRQ, 0); - if (!res2) + irq = platform_get_irq(pdev, 0); + if (irq 0) return

[PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-12 Thread Andreas Larsson
Add sparc support by using platform_get_irq instead of platform_get_resource. There are no platform resources of type IORESOURCE_IRQ for sparc, but platform_get_irq works for sparc. In the non-sparc case platform_get_irq internally uses platform_get_resource. Signed-off-by: Andreas Larsson

[PATCH v2 1/2] i2c: i2c-ocores: Add irq support for sparc

2012-11-12 Thread Andreas Larsson
Add sparc support by using platform_get_irq instead of platform_get_resource. There are no platform resources of type IORESOURCE_IRQ for sparc, but platform_get_irq works for sparc. In the non-sparc case platform_get_irq internally uses platform_get_resource. Signed-off-by: Andreas Larsson