Re: [PATCH] pata-rb532-cf: get rid of the irq_to_gpio() call
From: Alban <albeu@free.fr>
Date: 2016-02-17 12:40:42
Also in:
stable
From: Alban <albeu@free.fr>
Date: 2016-02-17 12:40:42
Also in:
stable
On Wed, 17 Feb 2016 12:58:20 +0100 Gabor Juhos [off-list ref] wrote:
The RB532 platform specific irq_to_gpio() implementation has been
removed with commit 832f5dacfa0b ("MIPS: Remove all the uses of
custom gpio.h"). Now the platform uses the generic stub which causes
the following error:
pata-rb532-cf pata-rb532-cf: no GPIO found for irq149
pata-rb532-cf: probe of pata-rb532-cf failed with error -2
Drop the irq_to_gpio() call and get the GPIO number from platform
data instead. After this change, the driver works again:I think it would be preferable to move this driver to use the gpiod API. The changes needed should be about the same size and it would be a much more future proof fix. Alban