Skip to content
Snippets Groups Projects
Commit fbeeb4ae authored by Nicolas Thill's avatar Nicolas Thill
Browse files

fix magicbox_ide on 2.6.24

SVN-Revision: 10837
parent c7ed0fbd
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,10 @@ static void __init ide_magicbox_register(unsigned long addr,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
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)
#else
if (ide_register_hw(&hw, NULL, 1, &hwif) != -1)
#endif
{
printk(KERN_NOTICE "magicbox-ide: Registered IDE-CF driver\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment