diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-23 18:24:48 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-25 18:37:24 -0500 |
commit | 51fac8388a0325a43f0ae67453ece2c373e2ec28 (patch) | |
tree | 594ad19d7aeb58ea90cb38e7a95fee00c697e969 | |
parent | cc38e519132f62d52db0a04d2eaed0d7c52fb165 (diff) |
ACPI: Remove useless type argument of driver .remove() operation
The second argument of ACPI driver .remove() operation is only used
by the ACPI processor driver and the value passed to that driver
through it is always available from the given struct acpi_device
object's removal_type field. For this reason, the second ACPI driver
.remove() argument is in fact useless, so drop it.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
44 files changed, 70 insertions, 73 deletions
diff --git a/arch/ia64/hp/common/aml_nfw.c b/arch/ia64/hp/common/aml_nfw.c index 6192f7188654..916ffe770bcf 100644 --- a/arch/ia64/hp/common/aml_nfw.c +++ b/arch/ia64/hp/common/aml_nfw.c | |||
@@ -191,7 +191,7 @@ static int aml_nfw_add(struct acpi_device *device) | |||
191 | return aml_nfw_add_global_handler(); | 191 | return aml_nfw_add_global_handler(); |
192 | } | 192 | } |
193 | 193 | ||
194 | static int aml_nfw_remove(struct acpi_device *device, int type) | 194 | static int aml_nfw_remove(struct acpi_device *device) |
195 | { | 195 | { |
196 | return aml_nfw_remove_global_handler(); | 196 | return aml_nfw_remove_global_handler(); |
197 | } | 197 | } |
diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index 2fdca25905ae..fef7d0ba7e3a 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c | |||
@@ -195,7 +195,7 @@ err_sysfs: | |||
195 | return r; | 195 | return r; |
196 | } | 196 | } |
197 | 197 | ||
198 | static int xo15_sci_remove(struct acpi_device *device, int type) | 198 | static int xo15_sci_remove(struct acpi_device *device) |
199 | { | 199 | { |
200 | acpi_disable_gpe(NULL, xo15_sci_gpe); | 200 | acpi_disable_gpe(NULL, xo15_sci_gpe); |
201 | acpi_remove_gpe_handler(NULL, xo15_sci_gpe, xo15_sci_gpe_handler); | 201 | acpi_remove_gpe_handler(NULL, xo15_sci_gpe, xo15_sci_gpe_handler); |
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index d5fdd36190cc..6d5bf649196d 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
@@ -60,7 +60,7 @@ static int acpi_ac_open_fs(struct inode *inode, struct file *file); | |||
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | static int acpi_ac_add(struct acpi_device *device); | 62 | static int acpi_ac_add(struct acpi_device *device); |
63 | static int acpi_ac_remove(struct acpi_device *device, int type); | 63 | static int acpi_ac_remove(struct acpi_device *device); |
64 | static void acpi_ac_notify(struct acpi_device *device, u32 event); | 64 | static void acpi_ac_notify(struct acpi_device *device, u32 event); |
65 | 65 | ||
66 | static const struct acpi_device_id ac_device_ids[] = { | 66 | static const struct acpi_device_id ac_device_ids[] = { |
@@ -337,7 +337,7 @@ static int acpi_ac_resume(struct device *dev) | |||
337 | } | 337 | } |
338 | #endif | 338 | #endif |
339 | 339 | ||
340 | static int acpi_ac_remove(struct acpi_device *device, int type) | 340 | static int acpi_ac_remove(struct acpi_device *device) |
341 | { | 341 | { |
342 | struct acpi_ac *ac = NULL; | 342 | struct acpi_ac *ac = NULL; |
343 | 343 | ||
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 03d18f290118..94c823b25138 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -54,7 +54,7 @@ MODULE_LICENSE("GPL"); | |||
54 | #define MEMORY_POWER_OFF_STATE 2 | 54 | #define MEMORY_POWER_OFF_STATE 2 |
55 | 55 | ||
56 | static int acpi_memory_device_add(struct acpi_device *device); | 56 | static int acpi_memory_device_add(struct acpi_device *device); |
57 | static int acpi_memory_device_remove(struct acpi_device *device, int type); | 57 | static int acpi_memory_device_remove(struct acpi_device *device); |
58 | 58 | ||
59 | static const struct acpi_device_id memory_device_ids[] = { | 59 | static const struct acpi_device_id memory_device_ids[] = { |
60 | {ACPI_MEMORY_DEVICE_HID, 0}, | 60 | {ACPI_MEMORY_DEVICE_HID, 0}, |
@@ -415,7 +415,7 @@ static int acpi_memory_device_add(struct acpi_device *device) | |||
415 | return result; | 415 | return result; |
416 | } | 416 | } |
417 | 417 | ||
418 | static int acpi_memory_device_remove(struct acpi_device *device, int type) | 418 | static int acpi_memory_device_remove(struct acpi_device *device) |
419 | { | 419 | { |
420 | struct acpi_memory_device *mem_device = NULL; | 420 | struct acpi_memory_device *mem_device = NULL; |
421 | int result; | 421 | int result; |
diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 16fa979f7180..31de1043eea0 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c | |||
@@ -482,8 +482,7 @@ static int acpi_pad_add(struct acpi_device *device) | |||
482 | return 0; | 482 | return 0; |
483 | } | 483 | } |
484 | 484 | ||
485 | static int acpi_pad_remove(struct acpi_device *device, | 485 | static int acpi_pad_remove(struct acpi_device *device) |
486 | int type) | ||
487 | { | 486 | { |
488 | mutex_lock(&isolated_cpus_lock); | 487 | mutex_lock(&isolated_cpus_lock); |
489 | acpi_pad_idle_cpus(0); | 488 | acpi_pad_idle_cpus(0); |
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 7efaeaa53b88..c5cd5b5513e6 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
@@ -1111,7 +1111,7 @@ fail: | |||
1111 | return result; | 1111 | return result; |
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | static int acpi_battery_remove(struct acpi_device *device, int type) | 1114 | static int acpi_battery_remove(struct acpi_device *device) |
1115 | { | 1115 | { |
1116 | struct acpi_battery *battery = NULL; | 1116 | struct acpi_battery *battery = NULL; |
1117 | 1117 | ||
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index f0d936b65e37..86c7d5445c38 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c | |||
@@ -75,7 +75,7 @@ static const struct acpi_device_id button_device_ids[] = { | |||
75 | MODULE_DEVICE_TABLE(acpi, button_device_ids); | 75 | MODULE_DEVICE_TABLE(acpi, button_device_ids); |
76 | 76 | ||
77 | static int acpi_button_add(struct acpi_device *device); | 77 | static int acpi_button_add(struct acpi_device *device); |
78 | static int acpi_button_remove(struct acpi_device *device, int type); | 78 | static int acpi_button_remove(struct acpi_device *device); |
79 | static void acpi_button_notify(struct acpi_device *device, u32 event); | 79 | static void acpi_button_notify(struct acpi_device *device, u32 event); |
80 | 80 | ||
81 | #ifdef CONFIG_PM_SLEEP | 81 | #ifdef CONFIG_PM_SLEEP |
@@ -433,7 +433,7 @@ static int acpi_button_add(struct acpi_device *device) | |||
433 | return error; | 433 | return error; |
434 | } | 434 | } |
435 | 435 | ||
436 | static int acpi_button_remove(struct acpi_device *device, int type) | 436 | static int acpi_button_remove(struct acpi_device *device) |
437 | { | 437 | { |
438 | struct acpi_button *button = acpi_driver_data(device); | 438 | struct acpi_button *button = acpi_driver_data(device); |
439 | 439 | ||
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index cc79d3e53a39..cc0bf4613e0d 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -52,7 +52,7 @@ MODULE_DESCRIPTION("ACPI container driver"); | |||
52 | MODULE_LICENSE("GPL"); | 52 | MODULE_LICENSE("GPL"); |
53 | 53 | ||
54 | static int acpi_container_add(struct acpi_device *device); | 54 | static int acpi_container_add(struct acpi_device *device); |
55 | static int acpi_container_remove(struct acpi_device *device, int type); | 55 | static int acpi_container_remove(struct acpi_device *device); |
56 | 56 | ||
57 | static const struct acpi_device_id container_device_ids[] = { | 57 | static const struct acpi_device_id container_device_ids[] = { |
58 | {"ACPI0004", 0}, | 58 | {"ACPI0004", 0}, |
@@ -125,7 +125,7 @@ static int acpi_container_add(struct acpi_device *device) | |||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | 127 | ||
128 | static int acpi_container_remove(struct acpi_device *device, int type) | 128 | static int acpi_container_remove(struct acpi_device *device) |
129 | { | 129 | { |
130 | acpi_status status = AE_OK; | 130 | acpi_status status = AE_OK; |
131 | struct acpi_container *pc = NULL; | 131 | struct acpi_container *pc = NULL; |
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 354007d490d1..d45b2871d33b 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -852,7 +852,7 @@ static int acpi_ec_add(struct acpi_device *device) | |||
852 | return ret; | 852 | return ret; |
853 | } | 853 | } |
854 | 854 | ||
855 | static int acpi_ec_remove(struct acpi_device *device, int type) | 855 | static int acpi_ec_remove(struct acpi_device *device) |
856 | { | 856 | { |
857 | struct acpi_ec *ec; | 857 | struct acpi_ec *ec; |
858 | struct acpi_ec_query_handler *handler, *tmp; | 858 | struct acpi_ec_query_handler *handler, *tmp; |
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 3bd6a54702d6..f815da82c765 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -45,7 +45,7 @@ MODULE_DESCRIPTION("ACPI Fan Driver"); | |||
45 | MODULE_LICENSE("GPL"); | 45 | MODULE_LICENSE("GPL"); |
46 | 46 | ||
47 | static int acpi_fan_add(struct acpi_device *device); | 47 | static int acpi_fan_add(struct acpi_device *device); |
48 | static int acpi_fan_remove(struct acpi_device *device, int type); | 48 | static int acpi_fan_remove(struct acpi_device *device); |
49 | 49 | ||
50 | static const struct acpi_device_id fan_device_ids[] = { | 50 | static const struct acpi_device_id fan_device_ids[] = { |
51 | {"PNP0C0B", 0}, | 51 | {"PNP0C0B", 0}, |
@@ -172,7 +172,7 @@ static int acpi_fan_add(struct acpi_device *device) | |||
172 | return result; | 172 | return result; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int acpi_fan_remove(struct acpi_device *device, int type) | 175 | static int acpi_fan_remove(struct acpi_device *device) |
176 | { | 176 | { |
177 | struct thermal_cooling_device *cdev = acpi_driver_data(device); | 177 | struct thermal_cooling_device *cdev = acpi_driver_data(device); |
178 | 178 | ||
diff --git a/drivers/acpi/hed.c b/drivers/acpi/hed.c index a0cc796932f7..13b1d39d7cdf 100644 --- a/drivers/acpi/hed.c +++ b/drivers/acpi/hed.c | |||
@@ -70,7 +70,7 @@ static int acpi_hed_add(struct acpi_device *device) | |||
70 | return 0; | 70 | return 0; |
71 | } | 71 | } |
72 | 72 | ||
73 | static int acpi_hed_remove(struct acpi_device *device, int type) | 73 | static int acpi_hed_remove(struct acpi_device *device) |
74 | { | 74 | { |
75 | hed_handle = NULL; | 75 | hed_handle = NULL; |
76 | return 0; | 76 | return 0; |
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index a12808259dfb..b6592797f5b2 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -54,7 +54,7 @@ ACPI_MODULE_NAME("pci_link"); | |||
54 | #define ACPI_PCI_LINK_MAX_POSSIBLE 16 | 54 | #define ACPI_PCI_LINK_MAX_POSSIBLE 16 |
55 | 55 | ||
56 | static int acpi_pci_link_add(struct acpi_device *device); | 56 | static int acpi_pci_link_add(struct acpi_device *device); |
57 | static int acpi_pci_link_remove(struct acpi_device *device, int type); | 57 | static int acpi_pci_link_remove(struct acpi_device *device); |
58 | 58 | ||
59 | static const struct acpi_device_id link_device_ids[] = { | 59 | static const struct acpi_device_id link_device_ids[] = { |
60 | {"PNP0C0F", 0}, | 60 | {"PNP0C0F", 0}, |
@@ -766,7 +766,7 @@ static void irqrouter_resume(void) | |||
766 | } | 766 | } |
767 | } | 767 | } |
768 | 768 | ||
769 | static int acpi_pci_link_remove(struct acpi_device *device, int type) | 769 | static int acpi_pci_link_remove(struct acpi_device *device) |
770 | { | 770 | { |
771 | struct acpi_pci_link *link; | 771 | struct acpi_pci_link *link; |
772 | 772 | ||
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 22a8458b4ec9..8890775e8b25 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -46,7 +46,7 @@ ACPI_MODULE_NAME("pci_root"); | |||
46 | #define ACPI_PCI_ROOT_CLASS "pci_bridge" | 46 | #define ACPI_PCI_ROOT_CLASS "pci_bridge" |
47 | #define ACPI_PCI_ROOT_DEVICE_NAME "PCI Root Bridge" | 47 | #define ACPI_PCI_ROOT_DEVICE_NAME "PCI Root Bridge" |
48 | static int acpi_pci_root_add(struct acpi_device *device); | 48 | static int acpi_pci_root_add(struct acpi_device *device); |
49 | static int acpi_pci_root_remove(struct acpi_device *device, int type); | 49 | static int acpi_pci_root_remove(struct acpi_device *device); |
50 | 50 | ||
51 | #define ACPI_PCIE_REQ_SUPPORT (OSC_EXT_PCI_CONFIG_SUPPORT \ | 51 | #define ACPI_PCIE_REQ_SUPPORT (OSC_EXT_PCI_CONFIG_SUPPORT \ |
52 | | OSC_ACTIVE_STATE_PWR_SUPPORT \ | 52 | | OSC_ACTIVE_STATE_PWR_SUPPORT \ |
@@ -627,7 +627,7 @@ end: | |||
627 | return result; | 627 | return result; |
628 | } | 628 | } |
629 | 629 | ||
630 | static int acpi_pci_root_remove(struct acpi_device *device, int type) | 630 | static int acpi_pci_root_remove(struct acpi_device *device) |
631 | { | 631 | { |
632 | acpi_status status; | 632 | acpi_status status; |
633 | acpi_handle handle; | 633 | acpi_handle handle; |
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index 9c5929a17d3a..c5d2fd85dbe0 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c | |||
@@ -81,7 +81,7 @@ MODULE_DESCRIPTION("ACPI Processor Driver"); | |||
81 | MODULE_LICENSE("GPL"); | 81 | MODULE_LICENSE("GPL"); |
82 | 82 | ||
83 | static int acpi_processor_add(struct acpi_device *device); | 83 | static int acpi_processor_add(struct acpi_device *device); |
84 | static int acpi_processor_remove(struct acpi_device *device, int type); | 84 | static int acpi_processor_remove(struct acpi_device *device); |
85 | static void acpi_processor_notify(struct acpi_device *device, u32 event); | 85 | static void acpi_processor_notify(struct acpi_device *device, u32 event); |
86 | static acpi_status acpi_processor_hotadd_init(struct acpi_processor *pr); | 86 | static acpi_status acpi_processor_hotadd_init(struct acpi_processor *pr); |
87 | static int acpi_processor_handle_eject(struct acpi_processor *pr); | 87 | static int acpi_processor_handle_eject(struct acpi_processor *pr); |
@@ -610,7 +610,7 @@ err_free_pr: | |||
610 | return result; | 610 | return result; |
611 | } | 611 | } |
612 | 612 | ||
613 | static int acpi_processor_remove(struct acpi_device *device, int type) | 613 | static int acpi_processor_remove(struct acpi_device *device) |
614 | { | 614 | { |
615 | struct acpi_processor *pr = NULL; | 615 | struct acpi_processor *pr = NULL; |
616 | 616 | ||
@@ -623,7 +623,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type) | |||
623 | if (pr->id >= nr_cpu_ids) | 623 | if (pr->id >= nr_cpu_ids) |
624 | goto free; | 624 | goto free; |
625 | 625 | ||
626 | if (type == ACPI_BUS_REMOVAL_EJECT) { | 626 | if (device->removal_type == ACPI_BUS_REMOVAL_EJECT) { |
627 | if (acpi_processor_handle_eject(pr)) | 627 | if (acpi_processor_handle_eject(pr)) |
628 | return -EINVAL; | 628 | return -EINVAL; |
629 | } | 629 | } |
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index ff0740e0a9c2..e523245643ac 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c | |||
@@ -130,7 +130,7 @@ struct acpi_sbs { | |||
130 | 130 | ||
131 | #define to_acpi_sbs(x) container_of(x, struct acpi_sbs, charger) | 131 | #define to_acpi_sbs(x) container_of(x, struct acpi_sbs, charger) |
132 | 132 | ||
133 | static int acpi_sbs_remove(struct acpi_device *device, int type); | 133 | static int acpi_sbs_remove(struct acpi_device *device); |
134 | static int acpi_battery_get_state(struct acpi_battery *battery); | 134 | static int acpi_battery_get_state(struct acpi_battery *battery); |
135 | 135 | ||
136 | static inline int battery_scale(int log) | 136 | static inline int battery_scale(int log) |
@@ -949,11 +949,11 @@ static int acpi_sbs_add(struct acpi_device *device) | |||
949 | acpi_smbus_register_callback(sbs->hc, acpi_sbs_callback, sbs); | 949 | acpi_smbus_register_callback(sbs->hc, acpi_sbs_callback, sbs); |
950 | end: | 950 | end: |
951 | if (result) | 951 | if (result) |
952 | acpi_sbs_remove(device, 0); | 952 | acpi_sbs_remove(device); |
953 | return result; | 953 | return result; |
954 | } | 954 | } |
955 | 955 | ||
956 | static int acpi_sbs_remove(struct acpi_device *device, int type) | 956 | static int acpi_sbs_remove(struct acpi_device *device) |
957 | { | 957 | { |
958 | struct acpi_sbs *sbs; | 958 | struct acpi_sbs *sbs; |
959 | int id; | 959 | int id; |
diff --git a/drivers/acpi/sbshc.c b/drivers/acpi/sbshc.c index cf6129a8af7c..b78bc605837e 100644 --- a/drivers/acpi/sbshc.c +++ b/drivers/acpi/sbshc.c | |||
@@ -33,7 +33,7 @@ struct acpi_smb_hc { | |||
33 | }; | 33 | }; |
34 | 34 | ||
35 | static int acpi_smbus_hc_add(struct acpi_device *device); | 35 | static int acpi_smbus_hc_add(struct acpi_device *device); |
36 | static int acpi_smbus_hc_remove(struct acpi_device *device, int type); | 36 | static int acpi_smbus_hc_remove(struct acpi_device *device); |
37 | 37 | ||
38 | static const struct acpi_device_id sbs_device_ids[] = { | 38 | static const struct acpi_device_id sbs_device_ids[] = { |
39 | {"ACPI0001", 0}, | 39 | {"ACPI0001", 0}, |
@@ -296,7 +296,7 @@ static int acpi_smbus_hc_add(struct acpi_device *device) | |||
296 | 296 | ||
297 | extern void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit); | 297 | extern void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit); |
298 | 298 | ||
299 | static int acpi_smbus_hc_remove(struct acpi_device *device, int type) | 299 | static int acpi_smbus_hc_remove(struct acpi_device *device) |
300 | { | 300 | { |
301 | struct acpi_smb_hc *hc; | 301 | struct acpi_smb_hc *hc; |
302 | 302 | ||
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index bc8077f173da..0989b323e65f 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -577,8 +577,7 @@ static int acpi_device_probe(struct device * dev) | |||
577 | ret = acpi_device_install_notify_handler(acpi_dev); | 577 | ret = acpi_device_install_notify_handler(acpi_dev); |
578 | if (ret) { | 578 | if (ret) { |
579 | if (acpi_drv->ops.remove) | 579 | if (acpi_drv->ops.remove) |
580 | acpi_drv->ops.remove(acpi_dev, | 580 | acpi_drv->ops.remove(acpi_dev); |
581 | acpi_dev->removal_type); | ||
582 | return ret; | 581 | return ret; |
583 | } | 582 | } |
584 | } | 583 | } |
@@ -600,7 +599,7 @@ static int acpi_device_remove(struct device * dev) | |||
600 | if (acpi_drv->ops.notify) | 599 | if (acpi_drv->ops.notify) |
601 | acpi_device_remove_notify_handler(acpi_dev); | 600 | acpi_device_remove_notify_handler(acpi_dev); |
602 | if (acpi_drv->ops.remove) | 601 | if (acpi_drv->ops.remove) |
603 | acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type); | 602 | acpi_drv->ops.remove(acpi_dev); |
604 | } | 603 | } |
605 | acpi_dev->driver = NULL; | 604 | acpi_dev->driver = NULL; |
606 | acpi_dev->driver_data = NULL; | 605 | acpi_dev->driver_data = NULL; |
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 506fbd4b5733..da079d4e0baa 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -97,7 +97,7 @@ module_param(psv, int, 0644); | |||
97 | MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); | 97 | MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); |
98 | 98 | ||
99 | static int acpi_thermal_add(struct acpi_device *device); | 99 | static int acpi_thermal_add(struct acpi_device *device); |
100 | static int acpi_thermal_remove(struct acpi_device *device, int type); | 100 | static int acpi_thermal_remove(struct acpi_device *device); |
101 | static void acpi_thermal_notify(struct acpi_device *device, u32 event); | 101 | static void acpi_thermal_notify(struct acpi_device *device, u32 event); |
102 | 102 | ||
103 | static const struct acpi_device_id thermal_device_ids[] = { | 103 | static const struct acpi_device_id thermal_device_ids[] = { |
@@ -1111,7 +1111,7 @@ end: | |||
1111 | return result; | 1111 | return result; |
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | static int acpi_thermal_remove(struct acpi_device *device, int type) | 1114 | static int acpi_thermal_remove(struct acpi_device *device) |
1115 | { | 1115 | { |
1116 | struct acpi_thermal *tz = NULL; | 1116 | struct acpi_thermal *tz = NULL; |
1117 | 1117 | ||
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index ac9a69cd45f5..5be60ad8381f 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c | |||
@@ -88,7 +88,7 @@ module_param(use_bios_initial_backlight, bool, 0644); | |||
88 | 88 | ||
89 | static int register_count = 0; | 89 | static int register_count = 0; |
90 | static int acpi_video_bus_add(struct acpi_device *device); | 90 | static int acpi_video_bus_add(struct acpi_device *device); |
91 | static int acpi_video_bus_remove(struct acpi_device *device, int type); | 91 | static int acpi_video_bus_remove(struct acpi_device *device); |
92 | static void acpi_video_bus_notify(struct acpi_device *device, u32 event); | 92 | static void acpi_video_bus_notify(struct acpi_device *device, u32 event); |
93 | 93 | ||
94 | static const struct acpi_device_id video_device_ids[] = { | 94 | static const struct acpi_device_id video_device_ids[] = { |
@@ -1740,7 +1740,7 @@ static int acpi_video_bus_add(struct acpi_device *device) | |||
1740 | return error; | 1740 | return error; |
1741 | } | 1741 | } |
1742 | 1742 | ||
1743 | static int acpi_video_bus_remove(struct acpi_device *device, int type) | 1743 | static int acpi_video_bus_remove(struct acpi_device *device) |
1744 | { | 1744 | { |
1745 | struct acpi_video_bus *video = NULL; | 1745 | struct acpi_video_bus *video = NULL; |
1746 | 1746 | ||
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index fe6d4be48296..e3f9a99b8522 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -1041,7 +1041,7 @@ static int hpet_acpi_add(struct acpi_device *device) | |||
1041 | return hpet_alloc(&data); | 1041 | return hpet_alloc(&data); |
1042 | } | 1042 | } |
1043 | 1043 | ||
1044 | static int hpet_acpi_remove(struct acpi_device *device, int type) | 1044 | static int hpet_acpi_remove(struct acpi_device *device) |
1045 | { | 1045 | { |
1046 | /* XXX need to unregister clocksource, dealloc mem, etc */ | 1046 | /* XXX need to unregister clocksource, dealloc mem, etc */ |
1047 | return -EINVAL; | 1047 | return -EINVAL; |
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index d780295a1473..6386a98e43c1 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -1142,7 +1142,7 @@ static int sonypi_acpi_add(struct acpi_device *device) | |||
1142 | return 0; | 1142 | return 0; |
1143 | } | 1143 | } |
1144 | 1144 | ||
1145 | static int sonypi_acpi_remove(struct acpi_device *device, int type) | 1145 | static int sonypi_acpi_remove(struct acpi_device *device) |
1146 | { | 1146 | { |
1147 | sonypi_acpi_device = NULL; | 1147 | sonypi_acpi_device = NULL; |
1148 | return 0; | 1148 | return 0; |
diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c index 1672e2a5db46..6351aba8819c 100644 --- a/drivers/hwmon/acpi_power_meter.c +++ b/drivers/hwmon/acpi_power_meter.c | |||
@@ -911,7 +911,7 @@ exit: | |||
911 | return res; | 911 | return res; |
912 | } | 912 | } |
913 | 913 | ||
914 | static int acpi_power_meter_remove(struct acpi_device *device, int type) | 914 | static int acpi_power_meter_remove(struct acpi_device *device) |
915 | { | 915 | { |
916 | struct acpi_power_meter_resource *resource; | 916 | struct acpi_power_meter_resource *resource; |
917 | 917 | ||
diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c index 56dbcfb3e301..b25c64302cbc 100644 --- a/drivers/hwmon/asus_atk0110.c +++ b/drivers/hwmon/asus_atk0110.c | |||
@@ -190,7 +190,7 @@ struct atk_acpi_input_buf { | |||
190 | }; | 190 | }; |
191 | 191 | ||
192 | static int atk_add(struct acpi_device *device); | 192 | static int atk_add(struct acpi_device *device); |
193 | static int atk_remove(struct acpi_device *device, int type); | 193 | static int atk_remove(struct acpi_device *device); |
194 | static void atk_print_sensor(struct atk_data *data, union acpi_object *obj); | 194 | static void atk_print_sensor(struct atk_data *data, union acpi_object *obj); |
195 | static int atk_read_value(struct atk_sensor_data *sensor, u64 *value); | 195 | static int atk_read_value(struct atk_sensor_data *sensor, u64 *value); |
196 | static void atk_free_sensors(struct atk_data *data); | 196 | static void atk_free_sensors(struct atk_data *data); |
@@ -1416,7 +1416,7 @@ out: | |||
1416 | return err; | 1416 | return err; |
1417 | } | 1417 | } |
1418 | 1418 | ||
1419 | static int atk_remove(struct acpi_device *device, int type) | 1419 | static int atk_remove(struct acpi_device *device) |
1420 | { | 1420 | { |
1421 | struct atk_data *data = device->driver_data; | 1421 | struct atk_data *data = device->driver_data; |
1422 | dev_dbg(&device->dev, "removing...\n"); | 1422 | dev_dbg(&device->dev, "removing...\n"); |
diff --git a/drivers/i2c/busses/i2c-scmi.c b/drivers/i2c/busses/i2c-scmi.c index 6aafa3d88ff0..c447e8d40b78 100644 --- a/drivers/i2c/busses/i2c-scmi.c +++ b/drivers/i2c/busses/i2c-scmi.c | |||
@@ -406,7 +406,7 @@ err: | |||
406 | return -EIO; | 406 | return -EIO; |
407 | } | 407 | } |
408 | 408 | ||
409 | static int acpi_smbus_cmi_remove(struct acpi_device *device, int type) | 409 | static int acpi_smbus_cmi_remove(struct acpi_device *device) |
410 | { | 410 | { |
411 | struct acpi_smbus_cmi *smbus_cmi = acpi_driver_data(device); | 411 | struct acpi_smbus_cmi *smbus_cmi = acpi_driver_data(device); |
412 | 412 | ||
diff --git a/drivers/input/misc/atlas_btns.c b/drivers/input/misc/atlas_btns.c index 26f13131639a..5d4402365a52 100644 --- a/drivers/input/misc/atlas_btns.c +++ b/drivers/input/misc/atlas_btns.c | |||
@@ -121,7 +121,7 @@ static int atlas_acpi_button_add(struct acpi_device *device) | |||
121 | return err; | 121 | return err; |
122 | } | 122 | } |
123 | 123 | ||
124 | static int atlas_acpi_button_remove(struct acpi_device *device, int type) | 124 | static int atlas_acpi_button_remove(struct acpi_device *device) |
125 | { | 125 | { |
126 | acpi_status status; | 126 | acpi_status status; |
127 | 127 | ||
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index fcde4e528819..d9f9a0dbc6f3 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -1910,7 +1910,7 @@ fail_platform: | |||
1910 | return result; | 1910 | return result; |
1911 | } | 1911 | } |
1912 | 1912 | ||
1913 | static int asus_acpi_remove(struct acpi_device *device, int type) | 1913 | static int asus_acpi_remove(struct acpi_device *device) |
1914 | { | 1914 | { |
1915 | struct asus_laptop *asus = acpi_driver_data(device); | 1915 | struct asus_laptop *asus = acpi_driver_data(device); |
1916 | 1916 | ||
diff --git a/drivers/platform/x86/classmate-laptop.c b/drivers/platform/x86/classmate-laptop.c index c87ff16873f9..36e5e6c13db4 100644 --- a/drivers/platform/x86/classmate-laptop.c +++ b/drivers/platform/x86/classmate-laptop.c | |||
@@ -432,7 +432,7 @@ failed_sensitivity: | |||
432 | return error; | 432 | return error; |
433 | } | 433 | } |
434 | 434 | ||
435 | static int cmpc_accel_remove_v4(struct acpi_device *acpi, int type) | 435 | static int cmpc_accel_remove_v4(struct acpi_device *acpi) |
436 | { | 436 | { |
437 | struct input_dev *inputdev; | 437 | struct input_dev *inputdev; |
438 | struct cmpc_accel *accel; | 438 | struct cmpc_accel *accel; |
@@ -668,7 +668,7 @@ failed_file: | |||
668 | return error; | 668 | return error; |
669 | } | 669 | } |
670 | 670 | ||
671 | static int cmpc_accel_remove(struct acpi_device *acpi, int type) | 671 | static int cmpc_accel_remove(struct acpi_device *acpi) |
672 | { | 672 | { |
673 | struct input_dev *inputdev; | 673 | struct input_dev *inputdev; |
674 | struct cmpc_accel *accel; | 674 | struct cmpc_accel *accel; |
@@ -753,7 +753,7 @@ static int cmpc_tablet_add(struct acpi_device *acpi) | |||
753 | cmpc_tablet_idev_init); | 753 | cmpc_tablet_idev_init); |
754 | } | 754 | } |
755 | 755 | ||
756 | static int cmpc_tablet_remove(struct acpi_device *acpi, int type) | 756 | static int cmpc_tablet_remove(struct acpi_device *acpi) |
757 | { | 757 | { |
758 | return cmpc_remove_acpi_notify_device(acpi); | 758 | return cmpc_remove_acpi_notify_device(acpi); |
759 | } | 759 | } |
@@ -1000,7 +1000,7 @@ out_bd: | |||
1000 | return retval; | 1000 | return retval; |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | static int cmpc_ipml_remove(struct acpi_device *acpi, int type) | 1003 | static int cmpc_ipml_remove(struct acpi_device *acpi) |
1004 | { | 1004 | { |
1005 | struct ipml200_dev *ipml; | 1005 | struct ipml200_dev *ipml; |
1006 | 1006 | ||
@@ -1079,7 +1079,7 @@ static int cmpc_keys_add(struct acpi_device *acpi) | |||
1079 | cmpc_keys_idev_init); | 1079 | cmpc_keys_idev_init); |
1080 | } | 1080 | } |
1081 | 1081 | ||
1082 | static int cmpc_keys_remove(struct acpi_device *acpi, int type) | 1082 | static int cmpc_keys_remove(struct acpi_device *acpi) |
1083 | { | 1083 | { |
1084 | return cmpc_remove_acpi_notify_device(acpi); | 1084 | return cmpc_remove_acpi_notify_device(acpi); |
1085 | } | 1085 | } |
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 528e9495458d..98935f945f53 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c | |||
@@ -1501,7 +1501,7 @@ fail_platform: | |||
1501 | return result; | 1501 | return result; |
1502 | } | 1502 | } |
1503 | 1503 | ||
1504 | static int eeepc_acpi_remove(struct acpi_device *device, int type) | 1504 | static int eeepc_acpi_remove(struct acpi_device *device) |
1505 | { | 1505 | { |
1506 | struct eeepc_laptop *eeepc = acpi_driver_data(device); | 1506 | struct eeepc_laptop *eeepc = acpi_driver_data(device); |
1507 | 1507 | ||
diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c index c4c1a5444b38..1c9386e7c58c 100644 --- a/drivers/platform/x86/fujitsu-laptop.c +++ b/drivers/platform/x86/fujitsu-laptop.c | |||
@@ -733,7 +733,7 @@ err_stop: | |||
733 | return result; | 733 | return result; |
734 | } | 734 | } |
735 | 735 | ||
736 | static int acpi_fujitsu_remove(struct acpi_device *device, int type) | 736 | static int acpi_fujitsu_remove(struct acpi_device *device) |
737 | { | 737 | { |
738 | struct fujitsu_t *fujitsu = acpi_driver_data(device); | 738 | struct fujitsu_t *fujitsu = acpi_driver_data(device); |
739 | struct input_dev *input = fujitsu->input; | 739 | struct input_dev *input = fujitsu->input; |
@@ -938,7 +938,7 @@ err_stop: | |||
938 | return result; | 938 | return result; |
939 | } | 939 | } |
940 | 940 | ||
941 | static int acpi_fujitsu_hotkey_remove(struct acpi_device *device, int type) | 941 | static int acpi_fujitsu_hotkey_remove(struct acpi_device *device) |
942 | { | 942 | { |
943 | struct fujitsu_hotkey_t *fujitsu_hotkey = acpi_driver_data(device); | 943 | struct fujitsu_hotkey_t *fujitsu_hotkey = acpi_driver_data(device); |
944 | struct input_dev *input = fujitsu_hotkey->input; | 944 | struct input_dev *input = fujitsu_hotkey->input; |
diff --git a/drivers/platform/x86/fujitsu-tablet.c b/drivers/platform/x86/fujitsu-tablet.c index 174ca01c4aa7..570926c10014 100644 --- a/drivers/platform/x86/fujitsu-tablet.c +++ b/drivers/platform/x86/fujitsu-tablet.c | |||
@@ -431,7 +431,7 @@ static int acpi_fujitsu_add(struct acpi_device *adev) | |||
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
433 | 433 | ||
434 | static int acpi_fujitsu_remove(struct acpi_device *adev, int type) | 434 | static int acpi_fujitsu_remove(struct acpi_device *adev) |
435 | { | 435 | { |
436 | free_irq(fujitsu.irq, fujitsu_interrupt); | 436 | free_irq(fujitsu.irq, fujitsu_interrupt); |
437 | release_region(fujitsu.io_base, fujitsu.io_length); | 437 | release_region(fujitsu.io_base, fujitsu.io_length); |
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c index 18d74f29dcb2..e64a7a870d42 100644 --- a/drivers/platform/x86/hp_accel.c +++ b/drivers/platform/x86/hp_accel.c | |||
@@ -337,7 +337,7 @@ static int lis3lv02d_add(struct acpi_device *device) | |||
337 | return ret; | 337 | return ret; |
338 | } | 338 | } |
339 | 339 | ||
340 | static int lis3lv02d_remove(struct acpi_device *device, int type) | 340 | static int lis3lv02d_remove(struct acpi_device *device) |
341 | { | 341 | { |
342 | if (!device) | 342 | if (!device) |
343 | return -EINVAL; | 343 | return -EINVAL; |
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 64bfb30a52e9..17f00b8dc5cb 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
@@ -834,7 +834,7 @@ platform_failed: | |||
834 | return ret; | 834 | return ret; |
835 | } | 835 | } |
836 | 836 | ||
837 | static int ideapad_acpi_remove(struct acpi_device *adevice, int type) | 837 | static int ideapad_acpi_remove(struct acpi_device *adevice) |
838 | { | 838 | { |
839 | struct ideapad_private *priv = dev_get_drvdata(&adevice->dev); | 839 | struct ideapad_private *priv = dev_get_drvdata(&adevice->dev); |
840 | int i; | 840 | int i; |
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c index 3271ac85115e..d6cfc1558c2f 100644 --- a/drivers/platform/x86/intel_menlow.c +++ b/drivers/platform/x86/intel_menlow.c | |||
@@ -200,7 +200,7 @@ static int intel_menlow_memory_add(struct acpi_device *device) | |||
200 | 200 | ||
201 | } | 201 | } |
202 | 202 | ||
203 | static int intel_menlow_memory_remove(struct acpi_device *device, int type) | 203 | static int intel_menlow_memory_remove(struct acpi_device *device) |
204 | { | 204 | { |
205 | struct thermal_cooling_device *cdev = acpi_driver_data(device); | 205 | struct thermal_cooling_device *cdev = acpi_driver_data(device); |
206 | 206 | ||
diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c index 8e8caa767d6a..4add9a31bf60 100644 --- a/drivers/platform/x86/panasonic-laptop.c +++ b/drivers/platform/x86/panasonic-laptop.c | |||
@@ -176,7 +176,7 @@ enum SINF_BITS { SINF_NUM_BATTERIES = 0, | |||
176 | /* R1 handles SINF_AC_CUR_BRIGHT as SINF_CUR_BRIGHT, doesn't know AC state */ | 176 | /* R1 handles SINF_AC_CUR_BRIGHT as SINF_CUR_BRIGHT, doesn't know AC state */ |
177 | 177 | ||
178 | static int acpi_pcc_hotkey_add(struct acpi_device *device); | 178 | static int acpi_pcc_hotkey_add(struct acpi_device *device); |
179 | static int acpi_pcc_hotkey_remove(struct acpi_device *device, int type); | 179 | static int acpi_pcc_hotkey_remove(struct acpi_device *device); |
180 | static void acpi_pcc_hotkey_notify(struct acpi_device *device, u32 event); | 180 | static void acpi_pcc_hotkey_notify(struct acpi_device *device, u32 event); |
181 | 181 | ||
182 | static const struct acpi_device_id pcc_device_ids[] = { | 182 | static const struct acpi_device_id pcc_device_ids[] = { |
@@ -663,7 +663,7 @@ static int __init acpi_pcc_init(void) | |||
663 | return 0; | 663 | return 0; |
664 | } | 664 | } |
665 | 665 | ||
666 | static int acpi_pcc_hotkey_remove(struct acpi_device *device, int type) | 666 | static int acpi_pcc_hotkey_remove(struct acpi_device *device) |
667 | { | 667 | { |
668 | struct pcc_acpi *pcc = acpi_driver_data(device); | 668 | struct pcc_acpi *pcc = acpi_driver_data(device); |
669 | 669 | ||
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index b8ad71f7863f..ceb41eff4230 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -2740,7 +2740,7 @@ outwalk: | |||
2740 | return result; | 2740 | return result; |
2741 | } | 2741 | } |
2742 | 2742 | ||
2743 | static int sony_nc_remove(struct acpi_device *device, int type) | 2743 | static int sony_nc_remove(struct acpi_device *device) |
2744 | { | 2744 | { |
2745 | struct sony_nc_value *item; | 2745 | struct sony_nc_value *item; |
2746 | 2746 | ||
@@ -4111,7 +4111,7 @@ found: | |||
4111 | * ACPI driver | 4111 | * ACPI driver |
4112 | * | 4112 | * |
4113 | *****************/ | 4113 | *****************/ |
4114 | static int sony_pic_remove(struct acpi_device *device, int type) | 4114 | static int sony_pic_remove(struct acpi_device *device) |
4115 | { | 4115 | { |
4116 | struct sony_pic_ioport *io, *tmp_io; | 4116 | struct sony_pic_ioport *io, *tmp_io; |
4117 | struct sony_pic_irq *irq, *tmp_irq; | 4117 | struct sony_pic_irq *irq, *tmp_irq; |
diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index d727bfee89a6..4ab618c63b45 100644 --- a/drivers/platform/x86/topstar-laptop.c +++ b/drivers/platform/x86/topstar-laptop.c | |||
@@ -157,7 +157,7 @@ add_err: | |||
157 | return -ENODEV; | 157 | return -ENODEV; |
158 | } | 158 | } |
159 | 159 | ||
160 | static int acpi_topstar_remove(struct acpi_device *device, int type) | 160 | static int acpi_topstar_remove(struct acpi_device *device) |
161 | { | 161 | { |
162 | struct topstar_hkey *tps_hkey = acpi_driver_data(device); | 162 | struct topstar_hkey *tps_hkey = acpi_driver_data(device); |
163 | 163 | ||
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index c2727895794c..904476b2fa8f 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -1118,7 +1118,7 @@ static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) | |||
1118 | return 0; | 1118 | return 0; |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | static int toshiba_acpi_remove(struct acpi_device *acpi_dev, int type) | 1121 | static int toshiba_acpi_remove(struct acpi_device *acpi_dev) |
1122 | { | 1122 | { |
1123 | struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev); | 1123 | struct toshiba_acpi_dev *dev = acpi_driver_data(acpi_dev); |
1124 | 1124 | ||
@@ -1250,7 +1250,7 @@ static int toshiba_acpi_add(struct acpi_device *acpi_dev) | |||
1250 | return 0; | 1250 | return 0; |
1251 | 1251 | ||
1252 | error: | 1252 | error: |
1253 | toshiba_acpi_remove(acpi_dev, 0); | 1253 | toshiba_acpi_remove(acpi_dev); |
1254 | return ret; | 1254 | return ret; |
1255 | } | 1255 | } |
1256 | 1256 | ||
diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c index e95be0b74859..74dd01ae343b 100644 --- a/drivers/platform/x86/toshiba_bluetooth.c +++ b/drivers/platform/x86/toshiba_bluetooth.c | |||
@@ -32,7 +32,7 @@ MODULE_LICENSE("GPL"); | |||
32 | 32 | ||
33 | 33 | ||
34 | static int toshiba_bt_rfkill_add(struct acpi_device *device); | 34 | static int toshiba_bt_rfkill_add(struct acpi_device *device); |
35 | static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type); | 35 | static int toshiba_bt_rfkill_remove(struct acpi_device *device); |
36 | static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event); | 36 | static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event); |
37 | 37 | ||
38 | static const struct acpi_device_id bt_device_ids[] = { | 38 | static const struct acpi_device_id bt_device_ids[] = { |
@@ -122,7 +122,7 @@ static int toshiba_bt_rfkill_add(struct acpi_device *device) | |||
122 | return result; | 122 | return result; |
123 | } | 123 | } |
124 | 124 | ||
125 | static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type) | 125 | static int toshiba_bt_rfkill_remove(struct acpi_device *device) |
126 | { | 126 | { |
127 | /* clean up */ | 127 | /* clean up */ |
128 | return 0; | 128 | return 0; |
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 42a4dcc25f92..e4ac38aca580 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c | |||
@@ -92,7 +92,7 @@ module_param(debug_dump_wdg, bool, 0444); | |||
92 | MODULE_PARM_DESC(debug_dump_wdg, | 92 | MODULE_PARM_DESC(debug_dump_wdg, |
93 | "Dump available WMI interfaces [0/1]"); | 93 | "Dump available WMI interfaces [0/1]"); |
94 | 94 | ||
95 | static int acpi_wmi_remove(struct acpi_device *device, int type); | 95 | static int acpi_wmi_remove(struct acpi_device *device); |
96 | static int acpi_wmi_add(struct acpi_device *device); | 96 | static int acpi_wmi_add(struct acpi_device *device); |
97 | static void acpi_wmi_notify(struct acpi_device *device, u32 event); | 97 | static void acpi_wmi_notify(struct acpi_device *device, u32 event); |
98 | 98 | ||
@@ -917,7 +917,7 @@ static void acpi_wmi_notify(struct acpi_device *device, u32 event) | |||
917 | } | 917 | } |
918 | } | 918 | } |
919 | 919 | ||
920 | static int acpi_wmi_remove(struct acpi_device *device, int type) | 920 | static int acpi_wmi_remove(struct acpi_device *device) |
921 | { | 921 | { |
922 | acpi_remove_address_space_handler(device->handle, | 922 | acpi_remove_address_space_handler(device->handle, |
923 | ACPI_ADR_SPACE_EC, &acpi_wmi_ec_space_handler); | 923 | ACPI_ADR_SPACE_EC, &acpi_wmi_ec_space_handler); |
diff --git a/drivers/platform/x86/xo15-ebook.c b/drivers/platform/x86/xo15-ebook.c index 16d340c3b852..4b1377bd5944 100644 --- a/drivers/platform/x86/xo15-ebook.c +++ b/drivers/platform/x86/xo15-ebook.c | |||
@@ -150,7 +150,7 @@ static int ebook_switch_add(struct acpi_device *device) | |||
150 | return error; | 150 | return error; |
151 | } | 151 | } |
152 | 152 | ||
153 | static int ebook_switch_remove(struct acpi_device *device, int type) | 153 | static int ebook_switch_remove(struct acpi_device *device) |
154 | { | 154 | { |
155 | struct ebook_switch *button = acpi_driver_data(device); | 155 | struct ebook_switch *button = acpi_driver_data(device); |
156 | 156 | ||
diff --git a/drivers/staging/quickstart/quickstart.c b/drivers/staging/quickstart/quickstart.c index cac320738142..adb8da564cf6 100644 --- a/drivers/staging/quickstart/quickstart.c +++ b/drivers/staging/quickstart/quickstart.c | |||
@@ -296,7 +296,7 @@ fail_config: | |||
296 | return ret; | 296 | return ret; |
297 | } | 297 | } |
298 | 298 | ||
299 | static int quickstart_acpi_remove(struct acpi_device *device, int type) | 299 | static int quickstart_acpi_remove(struct acpi_device *device) |
300 | { | 300 | { |
301 | acpi_status status; | 301 | acpi_status status; |
302 | struct quickstart_acpi *quickstart; | 302 | struct quickstart_acpi *quickstart; |
diff --git a/drivers/video/backlight/apple_bl.c b/drivers/video/backlight/apple_bl.c index f088d4c07381..d84329676689 100644 --- a/drivers/video/backlight/apple_bl.c +++ b/drivers/video/backlight/apple_bl.c | |||
@@ -196,7 +196,7 @@ static int apple_bl_add(struct acpi_device *dev) | |||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | static int apple_bl_remove(struct acpi_device *dev, int type) | 199 | static int apple_bl_remove(struct acpi_device *dev) |
200 | { | 200 | { |
201 | backlight_device_unregister(apple_backlight_device); | 201 | backlight_device_unregister(apple_backlight_device); |
202 | 202 | ||
diff --git a/drivers/xen/xen-acpi-pad.c b/drivers/xen/xen-acpi-pad.c index da39191e7278..c763479ed85e 100644 --- a/drivers/xen/xen-acpi-pad.c +++ b/drivers/xen/xen-acpi-pad.c | |||
@@ -140,8 +140,7 @@ static int acpi_pad_add(struct acpi_device *device) | |||
140 | return 0; | 140 | return 0; |
141 | } | 141 | } |
142 | 142 | ||
143 | static int acpi_pad_remove(struct acpi_device *device, | 143 | static int acpi_pad_remove(struct acpi_device *device) |
144 | int type) | ||
145 | { | 144 | { |
146 | mutex_lock(&xen_cpu_lock); | 145 | mutex_lock(&xen_cpu_lock); |
147 | xen_acpi_pad_idle_cpus(0); | 146 | xen_acpi_pad_idle_cpus(0); |
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 2c722deb2490..7714a1c2bbc5 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -89,7 +89,7 @@ struct acpi_device; | |||
89 | */ | 89 | */ |
90 | 90 | ||
91 | typedef int (*acpi_op_add) (struct acpi_device * device); | 91 | typedef int (*acpi_op_add) (struct acpi_device * device); |
92 | typedef int (*acpi_op_remove) (struct acpi_device * device, int type); | 92 | typedef int (*acpi_op_remove) (struct acpi_device * device); |
93 | typedef int (*acpi_op_start) (struct acpi_device * device); | 93 | typedef int (*acpi_op_start) (struct acpi_device * device); |
94 | typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); | 94 | typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); |
95 | 95 | ||