]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/mediabay.c
Pull kmalloc into release branch
[linux-2.6-omap-h63xx.git] / drivers / macintosh / mediabay.c
index 8dbf2852bae03f8b3c4a780effbef97397f123f2..0acf2f7fd9d725a3348d583306464211683021ac 100644 (file)
@@ -10,7 +10,6 @@
  *  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>
@@ -839,8 +838,8 @@ static int __init media_bay_init(void)
                media_bays[i].cd_index          = -1;
 #endif
        }
-       if (_machine != _MACH_Pmac)
-               return -ENODEV;
+       if (!machine_is(powermac))
+               return 0;
 
        macio_register_driver(&media_bay_driver);