diff options
author | Len Brown <len.brown@intel.com> | 2009-10-03 01:31:37 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-10-03 01:31:37 -0400 |
commit | c7db7ba5fc84e76044f403efbbba3af5fb01d19b (patch) | |
tree | bad1217e299591d257daf1226af21f17c82fb94e /drivers/acpi | |
parent | 3934092591c65270fd0d37e2b7288df188dd0bea (diff) | |
parent | 50d716e477a456f6ef8ef05f06a34f3d96b66e80 (diff) |
Merge branch 'misc' into release
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/dock.c | 16 | ||||
-rw-r--r-- | drivers/acpi/proc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/processor_core.c | 7 |
3 files changed, 10 insertions, 15 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 3a2cfefc71ab..7338b6a3e049 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -67,7 +67,7 @@ struct dock_station { | |||
67 | struct list_head dependent_devices; | 67 | struct list_head dependent_devices; |
68 | struct list_head hotplug_devices; | 68 | struct list_head hotplug_devices; |
69 | 69 | ||
70 | struct list_head sibiling; | 70 | struct list_head sibling; |
71 | struct platform_device *dock_device; | 71 | struct platform_device *dock_device; |
72 | }; | 72 | }; |
73 | static LIST_HEAD(dock_stations); | 73 | static LIST_HEAD(dock_stations); |
@@ -275,7 +275,7 @@ int is_dock_device(acpi_handle handle) | |||
275 | 275 | ||
276 | if (is_dock(handle)) | 276 | if (is_dock(handle)) |
277 | return 1; | 277 | return 1; |
278 | list_for_each_entry(dock_station, &dock_stations, sibiling) { | 278 | list_for_each_entry(dock_station, &dock_stations, sibling) { |
279 | if (find_dock_dependent_device(dock_station, handle)) | 279 | if (find_dock_dependent_device(dock_station, handle)) |
280 | return 1; | 280 | return 1; |
281 | } | 281 | } |
@@ -619,7 +619,7 @@ register_hotplug_dock_device(acpi_handle handle, struct acpi_dock_ops *ops, | |||
619 | * make sure this handle is for a device dependent on the dock, | 619 | * make sure this handle is for a device dependent on the dock, |
620 | * this would include the dock station itself | 620 | * this would include the dock station itself |
621 | */ | 621 | */ |
622 | list_for_each_entry(dock_station, &dock_stations, sibiling) { | 622 | list_for_each_entry(dock_station, &dock_stations, sibling) { |
623 | /* | 623 | /* |
624 | * An ATA bay can be in a dock and itself can be ejected | 624 | * An ATA bay can be in a dock and itself can be ejected |
625 | * seperately, so there are two 'dock stations' which need the | 625 | * seperately, so there are two 'dock stations' which need the |
@@ -651,7 +651,7 @@ void unregister_hotplug_dock_device(acpi_handle handle) | |||
651 | if (!dock_station_count) | 651 | if (!dock_station_count) |
652 | return; | 652 | return; |
653 | 653 | ||
654 | list_for_each_entry(dock_station, &dock_stations, sibiling) { | 654 | list_for_each_entry(dock_station, &dock_stations, sibling) { |
655 | dd = find_dock_dependent_device(dock_station, handle); | 655 | dd = find_dock_dependent_device(dock_station, handle); |
656 | if (dd) | 656 | if (dd) |
657 | dock_del_hotplug_device(dock_station, dd); | 657 | dock_del_hotplug_device(dock_station, dd); |
@@ -787,7 +787,7 @@ static int acpi_dock_notifier_call(struct notifier_block *this, | |||
787 | if (event != ACPI_NOTIFY_BUS_CHECK && event != ACPI_NOTIFY_DEVICE_CHECK | 787 | if (event != ACPI_NOTIFY_BUS_CHECK && event != ACPI_NOTIFY_DEVICE_CHECK |
788 | && event != ACPI_NOTIFY_EJECT_REQUEST) | 788 | && event != ACPI_NOTIFY_EJECT_REQUEST) |
789 | return 0; | 789 | return 0; |
790 | list_for_each_entry(dock_station, &dock_stations, sibiling) { | 790 | list_for_each_entry(dock_station, &dock_stations, sibling) { |
791 | if (dock_station->handle == handle) { | 791 | if (dock_station->handle == handle) { |
792 | struct dock_data *dock_data; | 792 | struct dock_data *dock_data; |
793 | 793 | ||
@@ -958,7 +958,7 @@ static int dock_add(acpi_handle handle) | |||
958 | dock_station->last_dock_time = jiffies - HZ; | 958 | dock_station->last_dock_time = jiffies - HZ; |
959 | INIT_LIST_HEAD(&dock_station->dependent_devices); | 959 | INIT_LIST_HEAD(&dock_station->dependent_devices); |
960 | INIT_LIST_HEAD(&dock_station->hotplug_devices); | 960 | INIT_LIST_HEAD(&dock_station->hotplug_devices); |
961 | INIT_LIST_HEAD(&dock_station->sibiling); | 961 | INIT_LIST_HEAD(&dock_station->sibling); |
962 | spin_lock_init(&dock_station->dd_lock); | 962 | spin_lock_init(&dock_station->dd_lock); |
963 | mutex_init(&dock_station->hp_lock); | 963 | mutex_init(&dock_station->hp_lock); |
964 | ATOMIC_INIT_NOTIFIER_HEAD(&dock_notifier_list); | 964 | ATOMIC_INIT_NOTIFIER_HEAD(&dock_notifier_list); |
@@ -1044,7 +1044,7 @@ static int dock_add(acpi_handle handle) | |||
1044 | add_dock_dependent_device(dock_station, dd); | 1044 | add_dock_dependent_device(dock_station, dd); |
1045 | 1045 | ||
1046 | dock_station_count++; | 1046 | dock_station_count++; |
1047 | list_add(&dock_station->sibiling, &dock_stations); | 1047 | list_add(&dock_station->sibling, &dock_stations); |
1048 | return 0; | 1048 | return 0; |
1049 | 1049 | ||
1050 | dock_add_err_unregister: | 1050 | dock_add_err_unregister: |
@@ -1149,7 +1149,7 @@ static void __exit dock_exit(void) | |||
1149 | struct dock_station *tmp; | 1149 | struct dock_station *tmp; |
1150 | 1150 | ||
1151 | unregister_acpi_bus_notifier(&dock_acpi_notifier); | 1151 | unregister_acpi_bus_notifier(&dock_acpi_notifier); |
1152 | list_for_each_entry_safe(dock_station, tmp, &dock_stations, sibiling) | 1152 | list_for_each_entry_safe(dock_station, tmp, &dock_stations, sibling) |
1153 | dock_remove(dock_station); | 1153 | dock_remove(dock_station); |
1154 | } | 1154 | } |
1155 | 1155 | ||
diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c index d0d550d22a6d..f8b6f555ba52 100644 --- a/drivers/acpi/proc.c +++ b/drivers/acpi/proc.c | |||
@@ -398,6 +398,8 @@ acpi_system_write_wakeup_device(struct file *file, | |||
398 | 398 | ||
399 | if (len > 4) | 399 | if (len > 4) |
400 | len = 4; | 400 | len = 4; |
401 | if (len < 0) | ||
402 | return -EFAULT; | ||
401 | 403 | ||
402 | if (copy_from_user(strbuf, buffer, len)) | 404 | if (copy_from_user(strbuf, buffer, len)) |
403 | return -EFAULT; | 405 | return -EFAULT; |
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index c2d4d6e09364..c567b46dfa0f 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -863,13 +863,6 @@ static int acpi_processor_add(struct acpi_device *device) | |||
863 | goto err_remove_sysfs; | 863 | goto err_remove_sysfs; |
864 | } | 864 | } |
865 | 865 | ||
866 | if (pr->flags.throttling) { | ||
867 | printk(KERN_INFO PREFIX "%s [%s] (supports", | ||
868 | acpi_device_name(device), acpi_device_bid(device)); | ||
869 | printk(" %d throttling states", pr->throttling.state_count); | ||
870 | printk(")\n"); | ||
871 | } | ||
872 | |||
873 | return 0; | 866 | return 0; |
874 | 867 | ||
875 | err_remove_sysfs: | 868 | err_remove_sysfs: |