ACPI: dock: combine add|alloc_dock_dependent_device (v2)
authorAlex Chiang <achiang@hp.com>
Mon, 19 Oct 2009 21:14:29 +0000 (15:14 -0600)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 08:02:10 +0000 (03:02 -0500)
commitf69cfdd24ac40ab7bbd00d6ad85e003da755e3a0
tree87e35e597e293d67e1ec0f4209b78b69a87cd33e
parent5f46c2f25cfbb5faca7550738ac42c4d1491ddc8
ACPI: dock: combine add|alloc_dock_dependent_device (v2)

There's no real need to have a separate allocation step when adding
a dock dependent device.

Combining the two functions is both logical and helps with legibility.

Signed-off-by: Alex Chiang <achiang@hp.com>
Acked-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c