summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf50633.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-03-05 13:44:20 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 11:26:46 -0800
commitb4877d2b3678f4455f2b8b0211868ac57c3b1ff6 (patch)
tree78d93a4edc48bb76e6f0a385cf5bb2d806405229 /drivers/rtc/rtc-pcf50633.c
parent49908e739e23e2672d3efb9b1a35f877f8e86342 (diff)
downloadlinux-b4877d2b3678f4455f2b8b0211868ac57c3b1ff6.tar.gz
linux-b4877d2b3678f4455f2b8b0211868ac57c3b1ff6.tar.bz2
linux-b4877d2b3678f4455f2b8b0211868ac57c3b1ff6.zip
rtc-ep93xx.c: cleanup probe/remove routines
Fix issue with rtc device not getting unregistered in probe error path. Use the devres managed resource functions in the probe routine to cleanup the error path. Use sysfs_{create/remove}_group to add/remove the sysfs files. Reduces the text size by 132 bytes, increases data by 12 bytes: text data bss dec hex filename - 937 124 0 1061 425 rtc-ep93xx.o + 805 136 0 941 3ad rtc-ep93xx.o Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Gortmaker <p_gortmaker@yahoo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-pcf50633.c')
0 files changed, 0 insertions, 0 deletions