aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-09-29 17:47:33 -0400
committerJames Morris <jmorris@namei.org>2009-09-29 17:47:33 -0400
commit1669b049db50fc7f1d4e694fb115a0f408c63fce (patch)
tree9b3b90b5cbff9b8f30ecf0b2a44896ce8bef0c20 /drivers/macintosh
parent7f366784f5c2b8fc0658b5b374f4c63ee42c789f (diff)
parent17d857be649a21ca90008c6dc425d849fa83db5c (diff)
Merge branch 'master' into next
Diffstat (limited to 'drivers/macintosh')
-rw-r--r--drivers/macintosh/macio_asic.c6
-rw-r--r--drivers/macintosh/rack-meter.c2
-rw-r--r--drivers/macintosh/therm_windtunnel.c4
-rw-r--r--drivers/macintosh/via-pmu-led.c2
4 files changed, 8 insertions, 6 deletions
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index a0f68386c12f..588a5b0bc4b5 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -294,10 +294,11 @@ static void macio_setup_interrupts(struct macio_dev *dev)
294 int i = 0, j = 0; 294 int i = 0, j = 0;
295 295
296 for (;;) { 296 for (;;) {
297 struct resource *res = &dev->interrupt[j]; 297 struct resource *res;
298 298
299 if (j >= MACIO_DEV_COUNT_IRQS) 299 if (j >= MACIO_DEV_COUNT_IRQS)
300 break; 300 break;
301 res = &dev->interrupt[j];
301 irq = irq_of_parse_and_map(np, i++); 302 irq = irq_of_parse_and_map(np, i++);
302 if (irq == NO_IRQ) 303 if (irq == NO_IRQ)
303 break; 304 break;
@@ -321,9 +322,10 @@ static void macio_setup_resources(struct macio_dev *dev,
321 int index; 322 int index;
322 323
323 for (index = 0; of_address_to_resource(np, index, &r) == 0; index++) { 324 for (index = 0; of_address_to_resource(np, index, &r) == 0; index++) {
324 struct resource *res = &dev->resource[index]; 325 struct resource *res;
325 if (index >= MACIO_DEV_COUNT_RESOURCES) 326 if (index >= MACIO_DEV_COUNT_RESOURCES)
326 break; 327 break;
328 res = &dev->resource[index];
327 *res = r; 329 *res = r;
328 res->name = dev_name(&dev->ofdev.dev); 330 res->name = dev_name(&dev->ofdev.dev);
329 331
diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c
index a98ab72adf95..93fb32038b14 100644
--- a/drivers/macintosh/rack-meter.c
+++ b/drivers/macintosh/rack-meter.c
@@ -274,7 +274,7 @@ static void __devinit rackmeter_init_cpu_sniffer(struct rackmeter *rm)
274 274
275 if (cpu > 1) 275 if (cpu > 1)
276 continue; 276 continue;
277 rcpu = &rm->cpu[cpu];; 277 rcpu = &rm->cpu[cpu];
278 rcpu->prev_idle = get_cpu_idle_time(cpu); 278 rcpu->prev_idle = get_cpu_idle_time(cpu);
279 rcpu->prev_wall = jiffies64_to_cputime64(get_jiffies_64()); 279 rcpu->prev_wall = jiffies64_to_cputime64(get_jiffies_64());
280 schedule_delayed_work_on(cpu, &rm->cpu[cpu].sniffer, 280 schedule_delayed_work_on(cpu, &rm->cpu[cpu].sniffer,
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c
index 40023313a760..8b9364434aa0 100644
--- a/drivers/macintosh/therm_windtunnel.c
+++ b/drivers/macintosh/therm_windtunnel.c
@@ -239,8 +239,8 @@ setup_hardware( void )
239 * to be on the safe side (OSX doesn't)... 239 * to be on the safe side (OSX doesn't)...
240 */ 240 */
241 if( x.overheat_temp == (80 << 8) ) { 241 if( x.overheat_temp == (80 << 8) ) {
242 x.overheat_temp = 65 << 8; 242 x.overheat_temp = 75 << 8;
243 x.overheat_hyst = 60 << 8; 243 x.overheat_hyst = 70 << 8;
244 write_reg( x.thermostat, 2, x.overheat_hyst, 2 ); 244 write_reg( x.thermostat, 2, x.overheat_hyst, 2 );
245 write_reg( x.thermostat, 3, x.overheat_temp, 2 ); 245 write_reg( x.thermostat, 3, x.overheat_temp, 2 );
246 246
diff --git a/drivers/macintosh/via-pmu-led.c b/drivers/macintosh/via-pmu-led.c
index 55ad95671387..d242976bcfe7 100644
--- a/drivers/macintosh/via-pmu-led.c
+++ b/drivers/macintosh/via-pmu-led.c
@@ -72,7 +72,7 @@ static void pmu_led_set(struct led_classdev *led_cdev,
72} 72}
73 73
74static struct led_classdev pmu_led = { 74static struct led_classdev pmu_led = {
75 .name = "pmu-front-led", 75 .name = "pmu-led::front",
76#ifdef CONFIG_ADB_PMU_LED_IDE 76#ifdef CONFIG_ADB_PMU_LED_IDE
77 .default_trigger = "ide-disk", 77 .default_trigger = "ide-disk",
78#endif 78#endif