]> err.no Git - linux-2.6/blobdiff - drivers/macintosh/via-pmu.c
[Blackfin] arch: Add proper SW System Reset delay sequence
[linux-2.6] / drivers / macintosh / via-pmu.c
index dc741d3a4531cbe365aa8b89256a0337782b5b00..ac420b17e16fdbc90c5d3ed2f1c35425c8bcb20f 100644 (file)
@@ -2336,6 +2336,7 @@ powerbook_sleep_3400(void)
        ret = pmac_suspend_devices();
        if (ret) {
                pbook_free_pci_save();
+               iounmap(mem_ctrl);
                printk(KERN_ERR "Sleep rejected by devices\n");
                return ret;
        }
@@ -2795,7 +2796,7 @@ static int pmu_sys_resume(struct sys_device *sysdev)
 #endif /* CONFIG_PM_SLEEP && CONFIG_PPC32 */
 
 static struct sysdev_class pmu_sysclass = {
-       set_kset_name("pmu"),
+       .name = "pmu",
 };
 
 static struct sys_device device_pmu = {