fix magicbox_ide on 2.6.24

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10837 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Nicolas Thill 2008-04-15 01:42:47 +00:00
parent 1519a7d78b
commit 4c98e33862
1 changed files with 3 additions and 1 deletions

View File

@ -100,8 +100,10 @@ static void __init ide_magicbox_register(unsigned long addr,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
if (ide_register_hw(&hw, &hwif) != -1) if (ide_register_hw(&hw, &hwif) != -1)
#else #elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
if (ide_register_hw(&hw, 1, &hwif) != -1) if (ide_register_hw(&hw, 1, &hwif) != -1)
#else
if (ide_register_hw(&hw, NULL, 1, &hwif) != -1)
#endif #endif
{ {
printk(KERN_NOTICE "magicbox-ide: Registered IDE-CF driver\n"); printk(KERN_NOTICE "magicbox-ide: Registered IDE-CF driver\n");