aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/magicbox/patches/100-cf_slot.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-08-21 16:52:06 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-08-21 16:52:06 +0000
commit8d28e6dc687ce6847e794b87b265c46266dade0e (patch)
treef0981d73b1d064c1dc7d3ca1240513d3b0a0763c /target/linux/magicbox/patches/100-cf_slot.patch
parent4419978f8408d073307e69a929b739e4eff27922 (diff)
downloadupstream-8d28e6dc687ce6847e794b87b265c46266dade0e.tar.gz
upstream-8d28e6dc687ce6847e794b87b265c46266dade0e.tar.bz2
upstream-8d28e6dc687ce6847e794b87b265c46266dade0e.zip
fix the CF driver on 2.6.26.x, and create a package for it
SVN-Revision: 12364
Diffstat (limited to 'target/linux/magicbox/patches/100-cf_slot.patch')
-rw-r--r--target/linux/magicbox/patches/100-cf_slot.patch25
1 files changed, 1 insertions, 24 deletions
diff --git a/target/linux/magicbox/patches/100-cf_slot.patch b/target/linux/magicbox/patches/100-cf_slot.patch
index 79f567216f..f6304b7b6b 100644
--- a/target/linux/magicbox/patches/100-cf_slot.patch
+++ b/target/linux/magicbox/patches/100-cf_slot.patch
@@ -1,26 +1,3 @@
---- a/drivers/ide/ide.c
-+++ b/drivers/ide/ide.c
-@@ -78,6 +78,10 @@
- /* default maximum number of failures */
- #define IDE_DEFAULT_MAX_FAILURES 1
-
-+#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
-+extern void __init ide_magicbox_init(void);
-+#endif
-+
- struct class *ide_port_class;
-
- static const u8 ide_hwif_to_major[] = { IDE0_MAJOR, IDE1_MAJOR,
-@@ -494,6 +498,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 @@
@@ -28,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.