Compact flash driver is now working
[openwrt.git] / target / linux / adm5120 / files / drivers / ata / pata_rb153_cf.c
index c6da5c3..fbbf313 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/gpio.h>
 
 #define DRV_NAME       "pata-rb153-cf"
 #include <asm/gpio.h>
 
 #define DRV_NAME       "pata-rb153-cf"
-#define DRV_VERSION    "0.2.1"
+#define DRV_VERSION    "0.2.2"
 #define DRV_DESC       "PATA driver for RouterBOARD 153 Compact Flash"
 
 #define RB153_CF_MAXPORTS      1
 #define DRV_DESC       "PATA driver for RouterBOARD 153 Compact Flash"
 
 #define RB153_CF_MAXPORTS      1
@@ -236,6 +236,7 @@ static __devinit int rb153_pata_driver_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        ah->private_data = info;
                return -ENOMEM;
 
        ah->private_data = info;
+       info->gpio_line = gpio;
 
        info->iobase = devm_ioremap_nocache(&pdev->dev, res->start,
                                res->end - res->start + 1);
 
        info->iobase = devm_ioremap_nocache(&pdev->dev, res->start,
                                res->end - res->start + 1);
@@ -252,7 +253,7 @@ static __devinit int rb153_pata_driver_probe(struct platform_device *pdev)
        rb153_pata_setup_ports(ah);
 
        ret = ata_host_activate(ah, irq, rb153_pata_irq_handler,
        rb153_pata_setup_ports(ah);
 
        ret = ata_host_activate(ah, irq, rb153_pata_irq_handler,
-                               IRQF_TRIGGER_HIGH, &rb153_pata_sht);
+                               IRQF_TRIGGER_LOW, &rb153_pata_sht);
        if (ret)
                goto err_free_gpio;
 
        if (ret)
                goto err_free_gpio;
 
This page took 0.025516 seconds and 4 git commands to generate.