From: NeilBrown Date: Fri, 6 Jul 2012 22:51:03 +0000 (+1000) Subject: mfd: Move twl-core device_init_wakeup to after platform_device_add X-Git-Tag: v3.6-rc1~47^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17ffba6ad235cf9c21937ee1343df0d0fb2371fa;p=pandora-kernel.git mfd: Move twl-core device_init_wakeup to after platform_device_add device_init_wakeup uses the dev_name() of the device to set the name of the wakeup_source which appears in /sys/kernel/debug/wakeup_sources. For a platform device, that name is not set until platform_device_add calls dev_set_name. So the call to device_init_wakeup() must be after the call to platform_device_add(). Making this change causes correct names to appear in the wakeup_sources file. Signed-off-by: NeilBrown Acked-by: Rafael J. Wysocki Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed