commit | f22ff5523af8b365167cb79189f8b91470d57c8c | [log] [tgz] |
---|---|---|
author | Jiang Liu <jiang.liu@huawei.com> | Sat Jun 29 00:24:34 2013 +0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Mon Jul 15 01:33:09 2013 +0200 |
tree | 274b5c3e50516054522ae66f9dc08bf62afa2d71 | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 [diff] |
ACPI / dock: avoid initializing acpi_dock_notifier_list multiple times Function dock_add() will be called multiple times if there are multiple dock stations, which causes acpi_dock_notifier_list to be initialized multiple times. To avoid that, move the initialization of acpi_dock_notifier_list from dock_add() to acpi_dock_init(). [rjw: Changelog] Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>