watchdog: ar7_wdt: Make use of the helper function devm_platform_ioremap_resource_byn...
authorCai Huoqing <caihuoqing@baidu.com>
Tue, 7 Sep 2021 07:42:22 +0000 (15:42 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:08 +0000 (21:31 +0200)
commit54ccba2f6a00026dbe6b5576990907827addab2b
tree9434321920b7c95892bf31464f1ab338b4d279eb
parent94213a39c3d8430297f52245d777b5c1ed627717
watchdog: ar7_wdt: Make use of the helper function devm_platform_ioremap_resource_byname()

Use the devm_platform_ioremap_resource_byname() helper instead of
calling platform_get_resource_byname() 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/20210907074223.2706-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/ar7_wdt.c