rtc: mc146818: Use probe() to set up the device
authorSimon Glass <sjg@chromium.org>
Sun, 18 Oct 2015 21:55:30 +0000 (15:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Oct 2015 13:46:50 +0000 (07:46 -0600)
commitb26eb88658b9fbb87c5bae22cede05de3124abb7
tree1629b9f4dc71ab4520317b024b99693bca1995bf
parent1bcb5c3a6cbaaf29d03bd58d068a7d42042476d5
rtc: mc146818: Use probe() to set up the device

At present this driver uses bind() to set up the device. The bind() method
should not touch the hardware, so move the init code to probe().

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/rtc/mc146818.c