kernel/modules: fix Magicbox CF card driver definitions
authorGabor Juhos <juhosg@openwrt.org>
Sun, 19 Jul 2009 09:13:25 +0000 (09:13 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 19 Jul 2009 09:13:25 +0000 (09:13 +0000)
SVN-Revision: 16911

package/kernel/modules/block.mk

index 2d14e42d5bffe93a68ddf4b484b89f7941032b24..f0be71c9502ee666094929b3981034a54b39f335 100644 (file)
@@ -179,7 +179,7 @@ define KernelPackage/ide-core/2.4
   AUTOLOAD+=$(call AutoLoad,30,ide-detect)
 endef
 
-ifneq ($(CONFIG_arm),y)
+ifneq ($(CONFIG_arm)$(CONFIG_powerpc),y)
   define KernelPackage/ide-core/2.6
     FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
     AUTOLOAD+=$(call AutoLoad,30,ide-generic)
@@ -220,9 +220,9 @@ $(eval $(call KernelPackage,ide-aec62xx))
 define KernelPackage/ide-magicbox
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=Magicbox 2.0 IDE CF driver
-  DEPENDS:=@TARGET_magicbox +kmod-ide-core
-  KCONFIG:=CONFIG_BLK_DEV_MAGICBOX_IDE
-  FILES:=$(LINUX_DIR)/drivers/ide/ppc/magicbox_ide.$(LINUX_KMOD_SUFFIX)
+  DEPENDS:=@TARGET_ppc40x @LINUX_2_6_30 +kmod-ide-core
+  KCONFIG:=CONFIG_BLK_DEV_IDE_MAGICBOX
+  FILES:=$(LINUX_DIR)/drivers/ide/magicbox_ide.$(LINUX_KMOD_SUFFIX)
   AUTOLOAD:=$(call AutoLoad,30,magicbox_ide)
 endef