diff options
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/adb.c | 2 | ||||
-rw-r--r-- | drivers/macintosh/mediabay.c | 3 | ||||
-rw-r--r-- | drivers/macintosh/therm_windtunnel.c | 5 | ||||
-rw-r--r-- | drivers/macintosh/via-pmu.c | 2 |
4 files changed, 5 insertions, 7 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 5ae28f076d25..7ce0ea64465c 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
@@ -854,7 +854,7 @@ adbdev_init(void) | |||
854 | adb_dev_class = class_create(THIS_MODULE, "adb"); | 854 | adb_dev_class = class_create(THIS_MODULE, "adb"); |
855 | if (IS_ERR(adb_dev_class)) | 855 | if (IS_ERR(adb_dev_class)) |
856 | return; | 856 | return; |
857 | class_device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), NULL, "adb"); | 857 | device_create(adb_dev_class, NULL, MKDEV(ADB_MAJOR, 0), "adb"); |
858 | 858 | ||
859 | platform_device_register(&adb_pfdev); | 859 | platform_device_register(&adb_pfdev); |
860 | platform_driver_probe(&adb_pfdrv, adb_dummy_probe); | 860 | platform_driver_probe(&adb_pfdrv, adb_dummy_probe); |
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c index 192bef5c20b3..18dde2a27209 100644 --- a/drivers/macintosh/mediabay.c +++ b/drivers/macintosh/mediabay.c | |||
@@ -563,7 +563,8 @@ static void media_bay_step(int i) | |||
563 | ide_init_hwif_ports(&hw, (unsigned long) bay->cd_base, (unsigned long) 0, NULL); | 563 | ide_init_hwif_ports(&hw, (unsigned long) bay->cd_base, (unsigned long) 0, NULL); |
564 | hw.irq = bay->cd_irq; | 564 | hw.irq = bay->cd_irq; |
565 | hw.chipset = ide_pmac; | 565 | hw.chipset = ide_pmac; |
566 | bay->cd_index = ide_register_hw(&hw, NULL, 0, NULL); | 566 | bay->cd_index = |
567 | ide_register_hw(&hw, NULL, NULL); | ||
567 | pmu_resume(); | 568 | pmu_resume(); |
568 | } | 569 | } |
569 | if (bay->cd_index == -1) { | 570 | if (bay->cd_index == -1) { |
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index 63ef1f6faaed..d11821af3b8d 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c | |||
@@ -48,12 +48,10 @@ | |||
48 | 48 | ||
49 | #define LOG_TEMP 0 /* continously log temperature */ | 49 | #define LOG_TEMP 0 /* continously log temperature */ |
50 | 50 | ||
51 | #define I2C_DRIVERID_G4FAN 0x9001 /* fixme */ | ||
52 | |||
53 | static int do_probe( struct i2c_adapter *adapter, int addr, int kind); | 51 | static int do_probe( struct i2c_adapter *adapter, int addr, int kind); |
54 | 52 | ||
55 | /* scan 0x48-0x4f (DS1775) and 0x2c-2x2f (ADM1030) */ | 53 | /* scan 0x48-0x4f (DS1775) and 0x2c-2x2f (ADM1030) */ |
56 | static unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, | 54 | static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, |
57 | 0x4c, 0x4d, 0x4e, 0x4f, | 55 | 0x4c, 0x4d, 0x4e, 0x4f, |
58 | 0x2c, 0x2d, 0x2e, 0x2f, | 56 | 0x2c, 0x2d, 0x2e, 0x2f, |
59 | I2C_CLIENT_END }; | 57 | I2C_CLIENT_END }; |
@@ -361,7 +359,6 @@ static struct i2c_driver g4fan_driver = { | |||
361 | .driver = { | 359 | .driver = { |
362 | .name = "therm_windtunnel", | 360 | .name = "therm_windtunnel", |
363 | }, | 361 | }, |
364 | .id = I2C_DRIVERID_G4FAN, | ||
365 | .attach_adapter = do_attach, | 362 | .attach_adapter = do_attach, |
366 | .detach_client = do_detach, | 363 | .detach_client = do_detach, |
367 | }; | 364 | }; |
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 82ec12e0edd2..ebec663d5d37 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
@@ -2482,7 +2482,7 @@ static int pmu_sys_resume(struct sys_device *sysdev) | |||
2482 | #endif /* CONFIG_SUSPEND && CONFIG_PPC32 */ | 2482 | #endif /* CONFIG_SUSPEND && CONFIG_PPC32 */ |
2483 | 2483 | ||
2484 | static struct sysdev_class pmu_sysclass = { | 2484 | static struct sysdev_class pmu_sysclass = { |
2485 | set_kset_name("pmu"), | 2485 | .name = "pmu", |
2486 | }; | 2486 | }; |
2487 | 2487 | ||
2488 | static struct sys_device device_pmu = { | 2488 | static struct sys_device device_pmu = { |