]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-s3c.c: convert to use devm_* API
authorTushar Behera <tushar.behera@linaro.org>
Tue, 18 Dec 2012 00:02:48 +0000 (16:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:21 +0000 (17:15 -0800)
commitc426c3b2224ac10afcbae7b73e31c1ea805d360c
tree73e73ea634f1527e1c5165e474cf02d628dca191
parentdb9ab660f9b9109b2aa771df2d6478404cf27ac0
drivers/rtc/rtc-s3c.c: convert to use devm_* API

rtc-s3c driver is modified to use devm_request_and_ioremap() (combining
request_mem_region and ioremap), devm_clk_get() and devm_request_irq()
APIs.  Since this removes the necessity of freeing the related resources
the return path is also simplified.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-s3c.c