From: Jingoo Han Date: Thu, 3 Apr 2014 21:49:50 +0000 (-0700) Subject: rtc: rtc-jz4740: use devm_ioremap_resource() X-Git-Tag: v3.15-rc1~106^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b6aa907f316a51345987327083aa266870d06cc;p=pandora-kernel.git 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 Cc: Lars-Peter Clausen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed