diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 9bc6cc6e3845..7ebbc0f53420 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -2667,10 +2667,10 @@ powerbook_sleep_3400(void) | |||
2667 | asleep = 1; | 2667 | asleep = 1; |
2668 | 2668 | ||
2669 | /* Put the CPU into sleep mode */ | 2669 | /* Put the CPU into sleep mode */ |
2670 | asm volatile("mfspr %0,1008" : "=r" (hid0) :); | 2670 | hid0 = mfspr(SPRN_HID0); |
2671 | hid0 = (hid0 & ~(HID0_NAP | HID0_DOZE)) | HID0_SLEEP; | 2671 | hid0 = (hid0 & ~(HID0_NAP | HID0_DOZE)) | HID0_SLEEP; |
2672 | asm volatile("mtspr 1008,%0" : : "r" (hid0)); | 2672 | mtspr(SPRN_HID0, hid0); |
2673 | _nmask_and_or_msr(0, MSR_POW | MSR_EE); | 2673 | mtmsr(mfmsr() | MSR_POW | MSR_EE); |
2674 | udelay(10); | 2674 | udelay(10); |
2675 | 2675 | ||
2676 | /* OK, we're awake again, start restoring things */ | 2676 | /* OK, we're awake again, start restoring things */ |