aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-06 07:57:58 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-06 11:31:51 -0500
commit5e6f236c263117cef5f0d68e3fec241ba2adc4fc (patch)
tree87c7fcf35434819cccace6f49ff1c3edddce5bdc
parentdd2151be28b9ed734fc5738ac675ed7e234847e3 (diff)
ACPI / hotplug / PCI: Simplify acpi_install_hotplug_notify_handler()
Since acpi_hotplug_notify_cb() does not use its data argument any more, the second argument of acpi_install_hotplug_notify_handler() can be dropped, so do that and update its callers accordingly. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/scan.c6
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c2
-rw-r--r--include/acpi/acpi_bus.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index a3f5d6eabe46..59f9e272562e 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -577,10 +577,10 @@ static void acpi_hotplug_notify_cb(acpi_handle handle, u32 type, void *data)
577 acpi_evaluate_hotplug_ost(handle, type, ost_code, NULL); 577 acpi_evaluate_hotplug_ost(handle, type, ost_code, NULL);
578} 578}
579 579
580void acpi_install_hotplug_notify_handler(acpi_handle handle, void *data) 580void acpi_install_hotplug_notify_handler(acpi_handle handle)
581{ 581{
582 acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, 582 acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
583 acpi_hotplug_notify_cb, data); 583 acpi_hotplug_notify_cb, NULL);
584} 584}
585 585
586void acpi_remove_hotplug_notify_handler(acpi_handle handle) 586void acpi_remove_hotplug_notify_handler(acpi_handle handle)
@@ -2040,7 +2040,7 @@ static void acpi_scan_init_hotplug(struct acpi_device *adev)
2040 if (!handler) 2040 if (!handler)
2041 continue; 2041 continue;
2042 2042
2043 acpi_install_hotplug_notify_handler(adev->handle, handler); 2043 acpi_install_hotplug_notify_handler(adev->handle);
2044 adev->flags.hotplug_notify = true; 2044 adev->flags.hotplug_notify = true;
2045 break; 2045 break;
2046 } 2046 }
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 7c498d663eb3..f3c49c442d93 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -376,7 +376,7 @@ static acpi_status register_slot(acpi_handle handle, u32 lvl, void *data,
376 376
377 /* install notify handler */ 377 /* install notify handler */
378 if (!(newfunc->flags & FUNC_HAS_DCK)) 378 if (!(newfunc->flags & FUNC_HAS_DCK))
379 acpi_install_hotplug_notify_handler(handle, NULL); 379 acpi_install_hotplug_notify_handler(handle);
380 380
381 return AE_OK; 381 return AE_OK;
382} 382}
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 53ce357f6335..907d5078f78a 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -446,7 +446,7 @@ static inline bool acpi_device_enumerated(struct acpi_device *adev)
446typedef void (*acpi_hp_callback)(void *data, u32 src); 446typedef void (*acpi_hp_callback)(void *data, u32 src);
447 447
448acpi_status acpi_hotplug_execute(acpi_hp_callback func, void *data, u32 src); 448acpi_status acpi_hotplug_execute(acpi_hp_callback func, void *data, u32 src);
449void acpi_install_hotplug_notify_handler(acpi_handle handle, void *data); 449void acpi_install_hotplug_notify_handler(acpi_handle handle);
450void acpi_remove_hotplug_notify_handler(acpi_handle handle); 450void acpi_remove_hotplug_notify_handler(acpi_handle handle);
451 451
452/** 452/**