]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-s3c.c: convert to use devm_* API
authorTushar Behera <tushar.behera@linaro.org>
Thu, 29 Nov 2012 03:18:47 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:41 +0000 (16:23 +1100)
commit47c752ae9aa6ffa07a892ee6c516870d03a8f53b
treea7f8f7cf987924ed6cfeaea9fb7558408a3201cb
parent45ceebae15959b4e8f8a7d45add22d45287f28f4
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>
drivers/rtc/rtc-s3c.c