linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / macintosh / mediabay.c
index 0acf2f7..8dbf285 100644 (file)
@@ -10,6 +10,7 @@
  *  as published by the Free Software Foundation; either version
  *  2 of the License, or (at your option) any later version.
  */
+#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
@@ -838,8 +839,8 @@ static int __init media_bay_init(void)
                media_bays[i].cd_index          = -1;
 #endif
        }
-       if (!machine_is(powermac))
-               return 0;
+       if (_machine != _MACH_Pmac)
+               return -ENODEV;
 
        macio_register_driver(&media_bay_driver);