diff options
Diffstat (limited to 'drivers/watchdog/ep93xx_wdt.c')
| -rw-r--r-- | drivers/watchdog/ep93xx_wdt.c | 21 | 
1 files changed, 6 insertions, 15 deletions
diff --git a/drivers/watchdog/ep93xx_wdt.c b/drivers/watchdog/ep93xx_wdt.c index e0574844c31..5f54e1e5819 100644 --- a/drivers/watchdog/ep93xx_wdt.c +++ b/drivers/watchdog/ep93xx_wdt.c @@ -28,7 +28,6 @@  #include <linux/platform_device.h>  #include <linux/module.h> -#include <linux/miscdevice.h>  #include <linux/watchdog.h>  #include <linux/timer.h>  #include <linux/io.h> @@ -119,16 +118,9 @@ static int ep93xx_wdt_probe(struct platform_device *pdev)  	int err;  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0); -	if (!res) -		return -ENXIO; - -	if (!devm_request_mem_region(&pdev->dev, res->start, -				     resource_size(res), pdev->name)) -		return -EBUSY; - -	mmio_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); -	if (!mmio_base) -		return -ENXIO; +	mmio_base = devm_ioremap_resource(&pdev->dev, res); +	if (IS_ERR(mmio_base)) +		return PTR_ERR(mmio_base);  	if (timeout < 1 || timeout > 3600) {  		timeout = WDT_TIMEOUT; @@ -173,10 +165,9 @@ static struct platform_driver ep93xx_wdt_driver = {  module_platform_driver(ep93xx_wdt_driver); -MODULE_AUTHOR("Ray Lehtiniemi <rayl@mail.com>," -		"Alessandro Zummo <a.zummo@towertech.it>," -		"H Hartley Sweeten <hsweeten@visionengravers.com>"); +MODULE_AUTHOR("Ray Lehtiniemi <rayl@mail.com>"); +MODULE_AUTHOR("Alessandro Zummo <a.zummo@towertech.it>"); +MODULE_AUTHOR("H Hartley Sweeten <hsweeten@visionengravers.com>");  MODULE_DESCRIPTION("EP93xx Watchdog");  MODULE_LICENSE("GPL");  MODULE_VERSION(WDT_VERSION); -MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);  | 
