fix compile error
[openwrt/staging/florian.git] / target / linux / magicbox / patches / 100-cf_slot.patch
1 --- a/drivers/ide/ide.c
2 +++ b/drivers/ide/ide.c
3 @@ -78,6 +78,10 @@
4 /* default maximum number of failures */
5 #define IDE_DEFAULT_MAX_FAILURES 1
6
7 +#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
8 +extern void __init ide_magicbox_init(void);
9 +#endif
10 +
11 struct class *ide_port_class;
12
13 static const u8 ide_hwif_to_major[] = { IDE0_MAJOR, IDE1_MAJOR,
14 @@ -494,6 +498,9 @@
15
16 return -EPERM;
17 #endif
18 +#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
19 + ide_magicbox_init();
20 +#endif
21 }
22
23 int set_pio_mode(ide_drive_t *drive, int arg)
24 --- a/drivers/ide/Kconfig
25 +++ b/drivers/ide/Kconfig
26 @@ -928,6 +928,14 @@
27
28 If unsure, say N.
29
30 +config BLK_DEV_MAGICBOX_IDE
31 + bool "MagicBox 2.0 CF IDE support"
32 + depends on 4xx && IDE
33 + help
34 + This option provides support for IDE on MagicBox 2.0 boards.
35 +
36 + If unsure, say N.
37 +
38 choice
39 prompt "Type of MPC8xx IDE interface"
40 depends on BLK_DEV_MPC8xx_IDE
41 --- a/drivers/ide/ppc/Makefile
42 +++ b/drivers/ide/ppc/Makefile
43 @@ -1,3 +1,4 @@
44
45 obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o
46 obj-$(CONFIG_BLK_DEV_MPC8xx_IDE) += mpc8xx.o
47 +obj-$(CONFIG_BLK_DEV_MAGICBOX_IDE) += magicbox_ide.o