aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-03-13 10:41:43 -0400
committerJeff Garzik <jgarzik@redhat.com>2009-03-24 22:16:34 -0400
commit9223d01b2fdf638a73888ad73a1784fca3454c1e (patch)
tree44a9bb462424f5b6434fd45137dc6ea73ef113e1 /drivers/ata
parentb2a034cf16a1642e647497c70c1cd9c09bf39412 (diff)
pata-rb532-cf: platform_get_irq() fix ignored failure
platform_get_irq() can return -ENXIO, but since 'irq' is an unsigned int, it does not show when the IRQ resource wasn't found. Make irq an int so that we can use a single variable to test the platform_get_irq() return value. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Phil Sutter <n0-1@freewrt.org> Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_rb532_cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c
index 2f3b49cc4970..8e3cdef8a25f 100644
--- a/drivers/ata/pata_rb532_cf.c
+++ b/drivers/ata/pata_rb532_cf.c
@@ -104,7 +104,7 @@ static void rb532_pata_setup_ports(struct ata_host *ah)
104 104
105static __devinit int rb532_pata_driver_probe(struct platform_device *pdev) 105static __devinit int rb532_pata_driver_probe(struct platform_device *pdev)
106{ 106{
107 unsigned int irq; 107 int irq;
108 int gpio; 108 int gpio;
109 struct resource *res; 109 struct resource *res;
110 struct ata_host *ah; 110 struct ata_host *ah;