ARM: sa1111: cleanup sub-device registration and unregistration
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Jan 2012 10:20:00 +0000 (10:20 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2012 11:30:12 +0000 (11:30 +0000)
commit924e1d4910a1f7d53f949a92a5d7793e572bb21d
treee71b578f6c97bd5c35916adfc4e60c82ed2fea43
parent21d1c7702e74337717a1133fe8665f6591768581
ARM: sa1111: cleanup sub-device registration and unregistration

Move the releasing of resources out of the release function - this
allows a cleaner and more conventional arrangement of the registration
failure paths and a saner unregistration process for these devices.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/sa1111.c