From: Peter Ujfalusi Date: Wed, 3 Jul 2013 22:07:55 +0000 (-0700) Subject: drivers/rtc/rtc-twl.c: fix rtc_reg_map initialization X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3869ff684cb96ccfaf3c3a9a302fe3b7e976b02;p=pandora-kernel.git 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 Signed-off-by: Peter Ujfalusi Tested-by: Kevin Hilman Tested-by: Grygorii Strashko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed