drivers/watchdog: don't check resource with devm_ioremap_resource
devm_ioremap_resource does sanity checks on the given resource. No need to duplicate this in the driver. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
@@ -248,11 +248,6 @@ static int ath79_wdt_probe(struct platform_device *pdev)
|
||||
return -EBUSY;
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
if (!res) {
|
||||
dev_err(&pdev->dev, "no memory resource found\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
wdt_base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(wdt_base))
|
||||
return PTR_ERR(wdt_base);
|
||||
|
مرجع در شماره جدید
Block a user