watchdog: Convert to devm_ioremap_resource()
Use the newly introduced devm_ioremap_resource() instead of devm_request_and_ioremap() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages; so all explicit error messages can be removed from the failure code paths. Signed-off-by:Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by:
Thierry Reding <thierry.reding@avionic-design.de> Cc: Gabor Juhos <juhosg@openwrt.org> Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by:
Wim Van Sebroeck <wim@iguana.be>
Showing
- drivers/watchdog/ath79_wdt.c 3 additions, 5 deletionsdrivers/watchdog/ath79_wdt.c
- drivers/watchdog/davinci_wdt.c 4 additions, 5 deletionsdrivers/watchdog/davinci_wdt.c
- drivers/watchdog/s3c2410_wdt.c 3 additions, 4 deletionsdrivers/watchdog/s3c2410_wdt.c
- drivers/watchdog/shwdt.c 4 additions, 3 deletionsdrivers/watchdog/shwdt.c
Please register or sign in to comment