]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/adb.c
mmc: whip bus uevent handler into shape
[linux-2.6-omap-h63xx.git] / drivers / macintosh / adb.c
index bc77c5e2ca9f49b799b5929fce616eaf75d25847..5c742a526082484f41dbb1592d982a7d010c725f 100644 (file)
@@ -89,7 +89,7 @@ static int sleepy_trackpad;
 static int autopoll_devs;
 int __adb_probe_sync;
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static void adb_notify_sleep(struct pmu_sleep_notifier *self, int when);
 static struct pmu_sleep_notifier adb_sleep_notifier = {
        adb_notify_sleep,
@@ -313,7 +313,7 @@ int __init adb_init(void)
                printk(KERN_WARNING "Warning: no ADB interface detected\n");
                adb_controller = NULL;
        } else {
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
                pmu_register_sleep_notifier(&adb_sleep_notifier);
 #endif /* CONFIG_PM */
 #ifdef CONFIG_PPC