aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-isl12057.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-03 14:49:50 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 16:21:19 -0700
commit3b6aa907f316a51345987327083aa266870d06cc (patch)
treeb5d0b9059ca1939d0562023cb1e5aa9bca131177 /drivers/rtc/rtc-isl12057.c
parentcaa3af259d5439e28c6ed1fc0efbed994146e403 (diff)
rtc: rtc-jz4740: use devm_ioremap_resource()
Use devm_ioremap_resource() in order to make the code simpler, and move 'struct resource *mem' from 'struct jz4740_rtc' to jz4740_rtc_probe() because the 'mem' variable is used only in jz4740_rtc_probe(). Also the redundant return value check of platform_get_resource() is removed, because the value is checked by devm_ioremap_resource(). Signed-off-by: Jingoo Han <jg1.han@samsung.com> Cc: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-isl12057.c')
0 files changed, 0 insertions, 0 deletions