ACPI / dock: Simplify dock_init_hotplug() and dock_release_hotplug()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 30 Jun 2013 21:47:14 +0000 (23:47 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 Jul 2013 23:33:11 +0000 (01:33 +0200)
commit4ec24065a65b4debfdeb591cc01a4aa092651f53
treeaa21b3a9df792b568c0fef3b809e33b2232960c1
parent37f908778f20bbcc35ab9a98a5b584329c6abf08
ACPI / dock: Simplify dock_init_hotplug() and dock_release_hotplug()

Make dock_init_hotplug() and dock_release_hotplug() slightly simpler
and move some checks in those functions to the code paths where they
are needed.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/acpi/dock.c