diff options
Diffstat (limited to 'drivers/macintosh/via-pmu.c')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 9bc6cc6e3845..564043508569 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -2053,6 +2053,7 @@ pmu_register_sleep_notifier(struct pmu_sleep_notifier *n) | |||
2053 | __list_add(&n->list, list->prev, list); | 2053 | __list_add(&n->list, list->prev, list); |
2054 | return 0; | 2054 | return 0; |
2055 | } | 2055 | } |
2056 | EXPORT_SYMBOL(pmu_register_sleep_notifier); | ||
2056 | 2057 | ||
2057 | int | 2058 | int |
2058 | pmu_unregister_sleep_notifier(struct pmu_sleep_notifier* n) | 2059 | pmu_unregister_sleep_notifier(struct pmu_sleep_notifier* n) |
@@ -2063,6 +2064,7 @@ pmu_unregister_sleep_notifier(struct pmu_sleep_notifier* n) | |||
2063 | n->list.next = NULL; | 2064 | n->list.next = NULL; |
2064 | return 0; | 2065 | return 0; |
2065 | } | 2066 | } |
2067 | EXPORT_SYMBOL(pmu_unregister_sleep_notifier); | ||
2066 | #endif /* CONFIG_PM */ | 2068 | #endif /* CONFIG_PM */ |
2067 | 2069 | ||
2068 | #if defined(CONFIG_PM) && defined(CONFIG_PPC32) | 2070 | #if defined(CONFIG_PM) && defined(CONFIG_PPC32) |
@@ -2667,10 +2669,10 @@ powerbook_sleep_3400(void) | |||
2667 | asleep = 1; | 2669 | asleep = 1; |
2668 | 2670 | ||
2669 | /* Put the CPU into sleep mode */ | 2671 | /* Put the CPU into sleep mode */ |
2670 | asm volatile("mfspr %0,1008" : "=r" (hid0) :); | 2672 | hid0 = mfspr(SPRN_HID0); |
2671 | hid0 = (hid0 & ~(HID0_NAP | HID0_DOZE)) | HID0_SLEEP; | 2673 | hid0 = (hid0 & ~(HID0_NAP | HID0_DOZE)) | HID0_SLEEP; |
2672 | asm volatile("mtspr 1008,%0" : : "r" (hid0)); | 2674 | mtspr(SPRN_HID0, hid0); |
2673 | _nmask_and_or_msr(0, MSR_POW | MSR_EE); | 2675 | mtmsr(mfmsr() | MSR_POW | MSR_EE); |
2674 | udelay(10); | 2676 | udelay(10); |
2675 | 2677 | ||
2676 | /* OK, we're awake again, start restoring things */ | 2678 | /* OK, we're awake again, start restoring things */ |
@@ -3139,8 +3141,6 @@ EXPORT_SYMBOL(pmu_i2c_stdsub_write); | |||
3139 | EXPORT_SYMBOL(pmu_i2c_simple_read); | 3141 | EXPORT_SYMBOL(pmu_i2c_simple_read); |
3140 | EXPORT_SYMBOL(pmu_i2c_simple_write); | 3142 | EXPORT_SYMBOL(pmu_i2c_simple_write); |
3141 | #if defined(CONFIG_PM) && defined(CONFIG_PPC32) | 3143 | #if defined(CONFIG_PM) && defined(CONFIG_PPC32) |
3142 | EXPORT_SYMBOL(pmu_register_sleep_notifier); | ||
3143 | EXPORT_SYMBOL(pmu_unregister_sleep_notifier); | ||
3144 | EXPORT_SYMBOL(pmu_enable_irled); | 3144 | EXPORT_SYMBOL(pmu_enable_irled); |
3145 | EXPORT_SYMBOL(pmu_battery_count); | 3145 | EXPORT_SYMBOL(pmu_battery_count); |
3146 | EXPORT_SYMBOL(pmu_batteries); | 3146 | EXPORT_SYMBOL(pmu_batteries); |