watchdog: iTCO_wdt: Make use of the helper function devm_platform_ioremap_resource()
authorCai Huoqing <caihuoqing@baidu.com>
Tue, 7 Sep 2021 07:42:29 +0000 (15:42 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:09 +0000 (21:31 +0200)
commit79cc4d22aa45c8933f7ea8682755f8beecae995a
tree0b6fc40bfa8414bb8a5f0232f22b903976d5a941
parent54ccba2f6a00026dbe6b5576990907827addab2b
watchdog: iTCO_wdt: Make use of the helper function devm_platform_ioremap_resource()

Use the devm_platform_ioremap_resource() helper instead of
calling platform_get_resource() and devm_ioremap_resource()
separately

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210907074230.2757-1-caihuoqing@baidu.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/iTCO_wdt.c