[adm5120] license cleanup
[openwrt/svn-archive/archive.git] / target / linux / adm5120 / files / drivers / ata / pata_rb153_cf.c
index c6da5c333219b54d000a5efede37c2e67184cd33..6cb8e55588d9c1a53945154f829ea0039b1d04df 100644 (file)
@@ -12,9 +12,9 @@
  *  their RouterBoard 1xx and 5xx series devices. The original Mikrotik code
  *  seems not to have a license.
  *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License version 2 as
- *  published by the Free Software Foundation.
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
  *
  */
 
@@ -32,7 +32,7 @@
 #include <asm/gpio.h>
 
 #define DRV_NAME       "pata-rb153-cf"
-#define DRV_VERSION    "0.2.1"
+#define DRV_VERSION    "0.3.0"
 #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;
+       info->gpio_line = gpio;
 
        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,
-                               IRQF_TRIGGER_HIGH, &rb153_pata_sht);
+                               IRQF_TRIGGER_LOW, &rb153_pata_sht);
        if (ret)
                goto err_free_gpio;
 
@@ -303,7 +304,7 @@ static void __exit rb153_pata_module_exit(void)
 MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>");
 MODULE_DESCRIPTION(DRV_DESC);
 MODULE_VERSION(DRV_VERSION);
-MODULE_LICENSE("GPL");
+MODULE_LICENSE("GPL v2");
 
 module_init(rb153_pata_module_init);
 module_exit(rb153_pata_module_exit);