From: Jingoo Han Date: Tue, 11 Feb 2014 12:10:50 +0000 (+0900) Subject: hwmon: (jz4740) Use devm_ioremap_resource() X-Git-Tag: v3.15-rc1~145^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939a0a3fe900125c1e04dc7121444f8f9972892c;p=pandora-kernel.git hwmon: (jz4740) Use devm_ioremap_resource() Use devm_ioremap_resource() in order to make the code simpler, and move 'struct resource *mem' from 'struct jz4740_hwmon' to jz4740_hwmon_probe() because the 'mem' variable is used only in jz4740_hwmon_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 Acked-by: Lars-Peter Clausen Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed