fix cmd640 with modular IDE
PATCH 1/1 fix cmd640 with modular IDE
Hi Alan,
2.4.22-rc1 with CONFIG_BLK_DEV_IDE=m and CONFIG_BLK_DEV_CMD640=y results in an unresolved reference to init_cmd640_vlb when depmod runs.
The patch below fixes this.
I've only tested the compilation, if it's not possible to use the CMD640 support modular, I'll send another patch that only adds the dependency on CONFIG_BLK_DEV_IDE (and therefore CMD640 will be unusable with modular IDE).
drivers/ide/Config.in renamed from drivers/ide/Config.in.old +4 -2
@@ -27,8 +27,10 @@ comment 'IDE chipset support/bugfixes' if [ "$CONFIG_BLK_DEV_IDE" != "n" ]; then - dep_bool ' CMD640 chipset bugfix/support' CONFIG_BLK_DEV_CMD640 $CONFIG_X86 - dep_bool ' CMD640 enhanced support' CONFIG_BLK_DEV_CMD640_ENHANCED $CONFIG_BLK_DEV_CMD640 + dep_tristate ' CMD640 chipset bugfix/support' CONFIG_BLK_DEV_CMD640 $CONFIG_X86 $CONFIG_BLK_DEV_IDE + if [ "$CONFIG_BLK_DEV_CMD640" != "n" ]; then + bool ' CMD640 enhanced support' CONFIG_BLK_DEV_CMD640_ENHANCED + fi dep_bool ' ISA-PNP EIDE support' CONFIG_BLK_DEV_ISAPNP $CONFIG_ISAPNP if [ "$CONFIG_PCI" = "y" ]; then bool ' PCI IDE chipset support' CONFIG_BLK_DEV_IDEPCI
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed