diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-07 18:14:06 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-07 18:14:06 -0400 |
| commit | d8dc91b753b881c60c766c06aeec87675a07df4a (patch) | |
| tree | 9a02f81fc5436b424d88c2340dcd6b0fe6ae6cca /drivers/platform | |
| parent | 7035cdf36d5c4d913f68ff97e1c2e5603500d946 (diff) | |
| parent | 3f44ea0d1c3835872033a6633135e16f87161202 (diff) | |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Pul ACPI & Power Management updates from Len Brown:
- acpidump utility added
- intel_idle driver now supports IVB Xeon
- turbostat utility can now count SMIs
- ACPI can now bind to USB3 hubs
- misc fixes
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (49 commits)
ACPI: Add new sysfs interface to export device description
ACPI: Harden acpi_table_parse_entries() against BIOS bug
tools/power/turbostat: add option to count SMIs, re-name some options
tools/power turbostat: add [-d MSR#][-D MSR#] options to print counter deltas
intel_idle: enable IVB Xeon support
tools/power turbostat: add [-m MSR#] option
tools/power turbostat: make -M output pretty
tools/power turbostat: print more turbo-limit information
tools/power turbostat: delete unused line
tools/power turbostat: run on IVB Xeon
tools/power/acpi/acpidump: create acpidump(8), local make install targets
tools/power/acpi/acpidump: version 20101221 - find dynamic tables in sysfs
ACPI: run _OSC after ACPI_FULL_INITIALIZATION
tools/power/acpi/acpidump: create acpidump(8), local make install targets
tools/power/acpi/acpidump: version 20101221 - find dynamic tables in sysfs
tools/power/acpi/acpidump: version 20071116
tools/power/acpi/acpidump: version 20070714
tools/power/acpi/acpidump: version 20060606
tools/power/acpi/acpidump: version 20051111
xo15-ebook: convert to module_acpi_driver()
...
Diffstat (limited to 'drivers/platform')
| -rw-r--r-- | drivers/platform/x86/hp_accel.c | 25 | ||||
| -rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 14 | ||||
| -rw-r--r-- | drivers/platform/x86/topstar-laptop.c | 22 | ||||
| -rw-r--r-- | drivers/platform/x86/toshiba_bluetooth.c | 22 | ||||
| -rw-r--r-- | drivers/platform/x86/xo15-ebook.c | 14 |
5 files changed, 5 insertions, 92 deletions
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c index 6b9af989632b..18d74f29dcb2 100644 --- a/drivers/platform/x86/hp_accel.c +++ b/drivers/platform/x86/hp_accel.c | |||
| @@ -382,31 +382,8 @@ static struct acpi_driver lis3lv02d_driver = { | |||
| 382 | }, | 382 | }, |
| 383 | .drv.pm = HP_ACCEL_PM, | 383 | .drv.pm = HP_ACCEL_PM, |
| 384 | }; | 384 | }; |
| 385 | 385 | module_acpi_driver(lis3lv02d_driver); | |
| 386 | static int __init lis3lv02d_init_module(void) | ||
| 387 | { | ||
| 388 | int ret; | ||
| 389 | |||
| 390 | if (acpi_disabled) | ||
| 391 | return -ENODEV; | ||
| 392 | |||
| 393 | ret = acpi_bus_register_driver(&lis3lv02d_driver); | ||
| 394 | if (ret < 0) | ||
| 395 | return ret; | ||
| 396 | |||
| 397 | pr_info("driver loaded\n"); | ||
| 398 | |||
| 399 | return 0; | ||
| 400 | } | ||
| 401 | |||
| 402 | static void __exit lis3lv02d_exit_module(void) | ||
| 403 | { | ||
| 404 | acpi_bus_unregister_driver(&lis3lv02d_driver); | ||
| 405 | } | ||
| 406 | 386 | ||
| 407 | MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED."); | 387 | MODULE_DESCRIPTION("Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED."); |
| 408 | MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek"); | 388 | MODULE_AUTHOR("Yan Burman, Eric Piel, Pavel Machek"); |
| 409 | MODULE_LICENSE("GPL"); | 389 | MODULE_LICENSE("GPL"); |
| 410 | |||
| 411 | module_init(lis3lv02d_init_module); | ||
| 412 | module_exit(lis3lv02d_exit_module); | ||
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index dae7abe1d711..5ff4f2e314d2 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
| @@ -917,20 +917,8 @@ static struct acpi_driver ideapad_acpi_driver = { | |||
| 917 | .drv.pm = &ideapad_pm, | 917 | .drv.pm = &ideapad_pm, |
| 918 | .owner = THIS_MODULE, | 918 | .owner = THIS_MODULE, |
| 919 | }; | 919 | }; |
| 920 | 920 | module_acpi_driver(ideapad_acpi_driver); | |
| 921 | static int __init ideapad_acpi_module_init(void) | ||
| 922 | { | ||
| 923 | return acpi_bus_register_driver(&ideapad_acpi_driver); | ||
| 924 | } | ||
| 925 | |||
| 926 | static void __exit ideapad_acpi_module_exit(void) | ||
| 927 | { | ||
| 928 | acpi_bus_unregister_driver(&ideapad_acpi_driver); | ||
| 929 | } | ||
| 930 | 921 | ||
| 931 | MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>"); | 922 | MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>"); |
| 932 | MODULE_DESCRIPTION("IdeaPad ACPI Extras"); | 923 | MODULE_DESCRIPTION("IdeaPad ACPI Extras"); |
| 933 | MODULE_LICENSE("GPL"); | 924 | MODULE_LICENSE("GPL"); |
| 934 | |||
| 935 | module_init(ideapad_acpi_module_init); | ||
| 936 | module_exit(ideapad_acpi_module_exit); | ||
diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index d528daa0e81c..d727bfee89a6 100644 --- a/drivers/platform/x86/topstar-laptop.c +++ b/drivers/platform/x86/topstar-laptop.c | |||
| @@ -186,27 +186,7 @@ static struct acpi_driver acpi_topstar_driver = { | |||
| 186 | .notify = acpi_topstar_notify, | 186 | .notify = acpi_topstar_notify, |
| 187 | }, | 187 | }, |
| 188 | }; | 188 | }; |
| 189 | 189 | module_acpi_driver(acpi_topstar_driver); | |
| 190 | static int __init topstar_laptop_init(void) | ||
| 191 | { | ||
| 192 | int ret; | ||
| 193 | |||
| 194 | ret = acpi_bus_register_driver(&acpi_topstar_driver); | ||
| 195 | if (ret < 0) | ||
| 196 | return ret; | ||
| 197 | |||
| 198 | pr_info("ACPI extras driver loaded\n"); | ||
| 199 | |||
| 200 | return 0; | ||
| 201 | } | ||
| 202 | |||
| 203 | static void __exit topstar_laptop_exit(void) | ||
| 204 | { | ||
| 205 | acpi_bus_unregister_driver(&acpi_topstar_driver); | ||
| 206 | } | ||
| 207 | |||
| 208 | module_init(topstar_laptop_init); | ||
| 209 | module_exit(topstar_laptop_exit); | ||
| 210 | 190 | ||
| 211 | MODULE_AUTHOR("Herton Ronaldo Krzesinski"); | 191 | MODULE_AUTHOR("Herton Ronaldo Krzesinski"); |
| 212 | MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver"); | 192 | MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver"); |
diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index 5e5d6317d690..e95be0b74859 100644 --- a/drivers/platform/x86/toshiba_bluetooth.c +++ b/drivers/platform/x86/toshiba_bluetooth.c | |||
| @@ -122,30 +122,10 @@ static int toshiba_bt_rfkill_add(struct acpi_device *device) | |||
| 122 | return result; | 122 | return result; |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | static int __init toshiba_bt_rfkill_init(void) | ||
| 126 | { | ||
| 127 | int result; | ||
| 128 | |||
| 129 | result = acpi_bus_register_driver(&toshiba_bt_rfkill_driver); | ||
| 130 | if (result < 0) { | ||
| 131 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | ||
| 132 | "Error registering driver\n")); | ||
| 133 | return result; | ||
| 134 | } | ||
| 135 | |||
| 136 | return 0; | ||
| 137 | } | ||
| 138 | |||
| 139 | static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type) | 125 | static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type) |
| 140 | { | 126 | { |
| 141 | /* clean up */ | 127 | /* clean up */ |
| 142 | return 0; | 128 | return 0; |
| 143 | } | 129 | } |
| 144 | 130 | ||
| 145 | static void __exit toshiba_bt_rfkill_exit(void) | 131 | module_acpi_driver(toshiba_bt_rfkill_driver); |
| 146 | { | ||
| 147 | acpi_bus_unregister_driver(&toshiba_bt_rfkill_driver); | ||
| 148 | } | ||
| 149 | |||
| 150 | module_init(toshiba_bt_rfkill_init); | ||
| 151 | module_exit(toshiba_bt_rfkill_exit); | ||
diff --git a/drivers/platform/x86/xo15-ebook.c b/drivers/platform/x86/xo15-ebook.c index 38ba39d7ca7d..16d340c3b852 100644 --- a/drivers/platform/x86/xo15-ebook.c +++ b/drivers/platform/x86/xo15-ebook.c | |||
| @@ -170,16 +170,4 @@ static struct acpi_driver xo15_ebook_driver = { | |||
| 170 | }, | 170 | }, |
| 171 | .drv.pm = &ebook_switch_pm, | 171 | .drv.pm = &ebook_switch_pm, |
| 172 | }; | 172 | }; |
| 173 | 173 | module_acpi_driver(xo15_ebook_driver); | |
| 174 | static int __init xo15_ebook_init(void) | ||
| 175 | { | ||
| 176 | return acpi_bus_register_driver(&xo15_ebook_driver); | ||
| 177 | } | ||
| 178 | |||
| 179 | static void __exit xo15_ebook_exit(void) | ||
| 180 | { | ||
| 181 | acpi_bus_unregister_driver(&xo15_ebook_driver); | ||
| 182 | } | ||
| 183 | |||
| 184 | module_init(xo15_ebook_init); | ||
| 185 | module_exit(xo15_ebook_exit); | ||
