ACPI / dock: avoid initializing acpi_dock_notifier_list multiple times
authorJiang Liu <jiang.liu@huawei.com>
Fri, 28 Jun 2013 16:24:34 +0000 (00:24 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 Jul 2013 23:33:09 +0000 (01:33 +0200)
commitf22ff5523af8b365167cb79189f8b91470d57c8c
tree274b5c3e50516054522ae66f9dc08bf62afa2d71
parentad81f0545ef01ea651886dddac4bef6cec930092
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>
drivers/acpi/dock.c