]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-twl.c: fix rtc_reg_map initialization
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 19 Jun 2013 00:08:08 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:34 +0000 (17:27 +1000)
commite2e317de3cc0f0672739c012e8aea6a1fa3de1e6
tree7942091c78cc435414ef9e23cfddd4cd6d8cf036
parentc847b118166e2eed6d6b95b07059ae59d3633397
drivers/rtc/rtc-twl.c: fix rtc_reg_map initialization

Initialize the rtc_reg_map in platform_driver's probe function instead at
module_init time.  This way we can make sure that the twl-core has been
already probed and initialized (twl_priv->twl_id is valid) since the
platform device for the RTC driver will be created by the twl-core after
it finished its init.

Reported-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-twl.c