diff options
author | Len Brown <len.brown@intel.com> | 2008-11-11 21:14:49 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-11-11 21:14:49 -0500 |
commit | 9b5a56ddfd615a27e3a0856ceae1592a24021e42 (patch) | |
tree | f7ae71e5f74d3aac8cad93f44f7022b935ac9057 /drivers | |
parent | a0017f471054a46379abbc4c96e269deaff5d9d9 (diff) | |
parent | 0794469da3f7b2093575cbdfc1108308dd3641ce (diff) |
Merge branch 'sysfs' into release
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/ac.c | 2 | ||||
-rw-r--r-- | drivers/acpi/battery.c | 2 | ||||
-rw-r--r-- | drivers/acpi/processor_core.c | 6 | ||||
-rw-r--r-- | drivers/acpi/scan.c | 8 | ||||
-rw-r--r-- | drivers/acpi/sleep/proc.c | 4 | ||||
-rw-r--r-- | drivers/acpi/thermal.c | 8 | ||||
-rw-r--r-- | drivers/acpi/wmi.c | 2 |
7 files changed, 16 insertions, 16 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 5cdd713a0eaf..9b917dac7732 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
@@ -241,7 +241,7 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data) | |||
241 | acpi_ac_get_state(ac); | 241 | acpi_ac_get_state(ac); |
242 | acpi_bus_generate_proc_event(device, event, (u32) ac->state); | 242 | acpi_bus_generate_proc_event(device, event, (u32) ac->state); |
243 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 243 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
244 | device->dev.bus_id, event, | 244 | dev_name(&device->dev), event, |
245 | (u32) ac->state); | 245 | (u32) ac->state); |
246 | #ifdef CONFIG_ACPI_SYSFS_POWER | 246 | #ifdef CONFIG_ACPI_SYSFS_POWER |
247 | kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE); | 247 | kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE); |
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 47f6e38fa6c8..1423b0c0cd2e 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -781,7 +781,7 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data) | |||
781 | acpi_bus_generate_proc_event(device, event, | 781 | acpi_bus_generate_proc_event(device, event, |
782 | acpi_battery_present(battery)); | 782 | acpi_battery_present(battery)); |
783 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 783 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
784 | device->dev.bus_id, event, | 784 | dev_name(&device->dev), event, |
785 | acpi_battery_present(battery)); | 785 | acpi_battery_present(battery)); |
786 | #ifdef CONFIG_ACPI_SYSFS_POWER | 786 | #ifdef CONFIG_ACPI_SYSFS_POWER |
787 | /* acpi_batter_update could remove power_supply object */ | 787 | /* acpi_batter_update could remove power_supply object */ |
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 105e0ff83848..79df7465bff9 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -760,20 +760,20 @@ static void acpi_processor_notify(acpi_handle handle, u32 event, void *data) | |||
760 | acpi_bus_generate_proc_event(device, event, | 760 | acpi_bus_generate_proc_event(device, event, |
761 | pr->performance_platform_limit); | 761 | pr->performance_platform_limit); |
762 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 762 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
763 | device->dev.bus_id, event, | 763 | dev_name(&device->dev), event, |
764 | pr->performance_platform_limit); | 764 | pr->performance_platform_limit); |
765 | break; | 765 | break; |
766 | case ACPI_PROCESSOR_NOTIFY_POWER: | 766 | case ACPI_PROCESSOR_NOTIFY_POWER: |
767 | acpi_processor_cst_has_changed(pr); | 767 | acpi_processor_cst_has_changed(pr); |
768 | acpi_bus_generate_proc_event(device, event, 0); | 768 | acpi_bus_generate_proc_event(device, event, 0); |
769 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 769 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
770 | device->dev.bus_id, event, 0); | 770 | dev_name(&device->dev), event, 0); |
771 | break; | 771 | break; |
772 | case ACPI_PROCESSOR_NOTIFY_THROTTLING: | 772 | case ACPI_PROCESSOR_NOTIFY_THROTTLING: |
773 | acpi_processor_tstate_has_changed(pr); | 773 | acpi_processor_tstate_has_changed(pr); |
774 | acpi_bus_generate_proc_event(device, event, 0); | 774 | acpi_bus_generate_proc_event(device, event, 0); |
775 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 775 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
776 | device->dev.bus_id, event, 0); | 776 | dev_name(&device->dev), event, 0); |
777 | default: | 777 | default: |
778 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 778 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
779 | "Unsupported event [0x%x]\n", event)); | 779 | "Unsupported event [0x%x]\n", event)); |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index a9dda8e0f9f9..4dd1f31930b8 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -109,8 +109,7 @@ static int acpi_bus_hot_remove_device(void *context) | |||
109 | return 0; | 109 | return 0; |
110 | 110 | ||
111 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 111 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
112 | "Hot-removing device %s...\n", device->dev.bus_id)); | 112 | "Hot-removing device %s...\n", dev_name(&device->dev))); |
113 | |||
114 | 113 | ||
115 | if (acpi_bus_trim(device, 1)) { | 114 | if (acpi_bus_trim(device, 1)) { |
116 | printk(KERN_ERR PREFIX | 115 | printk(KERN_ERR PREFIX |
@@ -460,7 +459,7 @@ static int acpi_device_register(struct acpi_device *device, | |||
460 | acpi_device_bus_id->instance_no = 0; | 459 | acpi_device_bus_id->instance_no = 0; |
461 | list_add_tail(&acpi_device_bus_id->node, &acpi_bus_id_list); | 460 | list_add_tail(&acpi_device_bus_id->node, &acpi_bus_id_list); |
462 | } | 461 | } |
463 | sprintf(device->dev.bus_id, "%s:%02x", acpi_device_bus_id->bus_id, acpi_device_bus_id->instance_no); | 462 | dev_set_name(&device->dev, "%s:%02x", acpi_device_bus_id->bus_id, acpi_device_bus_id->instance_no); |
464 | 463 | ||
465 | if (device->parent) { | 464 | if (device->parent) { |
466 | list_add_tail(&device->node, &device->parent->children); | 465 | list_add_tail(&device->node, &device->parent->children); |
@@ -484,7 +483,8 @@ static int acpi_device_register(struct acpi_device *device, | |||
484 | 483 | ||
485 | result = acpi_device_setup_files(device); | 484 | result = acpi_device_setup_files(device); |
486 | if(result) | 485 | if(result) |
487 | printk(KERN_ERR PREFIX "Error creating sysfs interface for device %s\n", device->dev.bus_id); | 486 | printk(KERN_ERR PREFIX "Error creating sysfs interface for device %s\n", |
487 | dev_name(&device->dev)); | ||
488 | 488 | ||
489 | device->removal_type = ACPI_BUS_REMOVAL_NORMAL; | 489 | device->removal_type = ACPI_BUS_REMOVAL_NORMAL; |
490 | return 0; | 490 | return 0; |
diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c index 631ee2ee2ca0..64e591ba86f2 100644 --- a/drivers/acpi/sleep/proc.c +++ b/drivers/acpi/sleep/proc.c | |||
@@ -366,8 +366,8 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) | |||
366 | dev->wakeup.state.enabled ? "enabled" : "disabled"); | 366 | dev->wakeup.state.enabled ? "enabled" : "disabled"); |
367 | if (ldev) | 367 | if (ldev) |
368 | seq_printf(seq, "%s:%s", | 368 | seq_printf(seq, "%s:%s", |
369 | ldev->bus ? ldev->bus->name : "no-bus", | 369 | dev_name(ldev) ? ldev->bus->name : "no-bus", |
370 | ldev->bus_id); | 370 | dev_name(ldev)); |
371 | seq_printf(seq, "\n"); | 371 | seq_printf(seq, "\n"); |
372 | put_device(ldev); | 372 | put_device(ldev); |
373 | 373 | ||
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index a6da1d9918c7..073ff09218a9 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -575,7 +575,7 @@ static int acpi_thermal_critical(struct acpi_thermal *tz) | |||
575 | acpi_bus_generate_proc_event(tz->device, ACPI_THERMAL_NOTIFY_CRITICAL, | 575 | acpi_bus_generate_proc_event(tz->device, ACPI_THERMAL_NOTIFY_CRITICAL, |
576 | tz->trips.critical.flags.enabled); | 576 | tz->trips.critical.flags.enabled); |
577 | acpi_bus_generate_netlink_event(tz->device->pnp.device_class, | 577 | acpi_bus_generate_netlink_event(tz->device->pnp.device_class, |
578 | tz->device->dev.bus_id, | 578 | dev_name(&tz->device->dev), |
579 | ACPI_THERMAL_NOTIFY_CRITICAL, | 579 | ACPI_THERMAL_NOTIFY_CRITICAL, |
580 | tz->trips.critical.flags.enabled); | 580 | tz->trips.critical.flags.enabled); |
581 | 581 | ||
@@ -604,7 +604,7 @@ static int acpi_thermal_hot(struct acpi_thermal *tz) | |||
604 | acpi_bus_generate_proc_event(tz->device, ACPI_THERMAL_NOTIFY_HOT, | 604 | acpi_bus_generate_proc_event(tz->device, ACPI_THERMAL_NOTIFY_HOT, |
605 | tz->trips.hot.flags.enabled); | 605 | tz->trips.hot.flags.enabled); |
606 | acpi_bus_generate_netlink_event(tz->device->pnp.device_class, | 606 | acpi_bus_generate_netlink_event(tz->device->pnp.device_class, |
607 | tz->device->dev.bus_id, | 607 | dev_name(&tz->device->dev), |
608 | ACPI_THERMAL_NOTIFY_HOT, | 608 | ACPI_THERMAL_NOTIFY_HOT, |
609 | tz->trips.hot.flags.enabled); | 609 | tz->trips.hot.flags.enabled); |
610 | 610 | ||
@@ -1591,14 +1591,14 @@ static void acpi_thermal_notify(acpi_handle handle, u32 event, void *data) | |||
1591 | acpi_thermal_check(tz); | 1591 | acpi_thermal_check(tz); |
1592 | acpi_bus_generate_proc_event(device, event, 0); | 1592 | acpi_bus_generate_proc_event(device, event, 0); |
1593 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 1593 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
1594 | device->dev.bus_id, event, 0); | 1594 | dev_name(&device->dev), event, 0); |
1595 | break; | 1595 | break; |
1596 | case ACPI_THERMAL_NOTIFY_DEVICES: | 1596 | case ACPI_THERMAL_NOTIFY_DEVICES: |
1597 | acpi_thermal_trips_update(tz, ACPI_TRIPS_REFRESH_DEVICES); | 1597 | acpi_thermal_trips_update(tz, ACPI_TRIPS_REFRESH_DEVICES); |
1598 | acpi_thermal_check(tz); | 1598 | acpi_thermal_check(tz); |
1599 | acpi_bus_generate_proc_event(device, event, 0); | 1599 | acpi_bus_generate_proc_event(device, event, 0); |
1600 | acpi_bus_generate_netlink_event(device->pnp.device_class, | 1600 | acpi_bus_generate_netlink_event(device->pnp.device_class, |
1601 | device->dev.bus_id, event, 0); | 1601 | dev_name(&device->dev), event, 0); |
1602 | break; | 1602 | break; |
1603 | default: | 1603 | default: |
1604 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 1604 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c index 47cd7baf9b1b..8a8b377712c9 100644 --- a/drivers/acpi/wmi.c +++ b/drivers/acpi/wmi.c | |||
@@ -660,7 +660,7 @@ static void acpi_wmi_notify(acpi_handle handle, u32 event, void *data) | |||
660 | wblock->handler(event, wblock->handler_data); | 660 | wblock->handler(event, wblock->handler_data); |
661 | 661 | ||
662 | acpi_bus_generate_netlink_event( | 662 | acpi_bus_generate_netlink_event( |
663 | device->pnp.device_class, device->dev.bus_id, | 663 | device->pnp.device_class, dev_name(&device->dev), |
664 | event, 0); | 664 | event, 0); |
665 | break; | 665 | break; |
666 | } | 666 | } |