[ARM] orion5x: ts78xx make more bulletproof the RTC load/unload code
authorAlexander Clouter <alex@digriz.org.uk>
Mon, 23 Feb 2009 22:37:36 +0000 (22:37 +0000)
committerNicolas Pitre <nico@cam.org>
Wed, 25 Feb 2009 04:59:33 +0000 (23:59 -0500)
commitf5273fa3102fa4c25819f3034b8834c37d3e62a3
tree8b58f9413702bbd91e85c90398e35f113435a286
parentf1f5465782a96201798ef1e8167ed3ffaefdb30d
[ARM] orion5x: ts78xx make more bulletproof the RTC load/unload code

Added checks to the platform_device_(register|add) calls so that if
a device failed to load it would then not later be unloaded; also
added the hooks so that it would not try to unload when the RTC
driver support is compiled out.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@cam.org>
arch/arm/mach-orion5x/ts78xx-setup.c