ACPI: dock: dock_add - hoist up platform_device_register_simple()
authorAlex Chiang <achiang@hp.com>
Mon, 19 Oct 2009 21:14:40 +0000 (15:14 -0600)
committerLen Brown <len.brown@intel.com>
Wed, 16 Dec 2009 08:03:11 +0000 (03:03 -0500)
commit9751cb721ef650729e981c7b39abb7676cd646e1
treeb497f5a6fe41802280c4991feab7ce17e873f4c4
parentc6f1905ea91bf56a921c6eb574488869c8c3eeff
ACPI: dock: dock_add - hoist up platform_device_register_simple()

Move the call to platform_device_register_simple so that we do it
before allocating and initializing our struct dock_station.

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