[magicbox] fix the CF driver on 2.6.26.x, and create a package for it
[openwrt-github/.git] / target / linux / magicbox / patches / 100-cf_slot.patch
index e15d522df81f7c65910111ca6b69b52d50add580..f6304b7b6b5dfb4348ae4e1ec43a471474fd9c3b 100644 (file)
@@ -1,15 +1,3 @@
---- a/drivers/ide/ide.c
-+++ b/drivers/ide/ide.c
-@@ -494,6 +494,9 @@
-       return -EPERM;
- #endif
-+#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
-+      ide_magicbox_init();
-+#endif
- }
- int set_pio_mode(ide_drive_t *drive, int arg)
 --- a/drivers/ide/Kconfig
 +++ b/drivers/ide/Kconfig
 @@ -928,6 +928,14 @@
@@ -17,7 +5,7 @@
          If unsure, say N.
  
 +config BLK_DEV_MAGICBOX_IDE
-+      bool "MagicBox 2.0 CF IDE support"
++      tristate "MagicBox 2.0 CF IDE support"
 +      depends on 4xx && IDE
 +      help
 +        This option provides support for IDE on MagicBox 2.0 boards.