diff options
Diffstat (limited to 'drivers/watchdog/ts72xx_wdt.c')
-rw-r--r-- | drivers/watchdog/ts72xx_wdt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/ts72xx_wdt.c b/drivers/watchdog/ts72xx_wdt.c index 09d4831aa61f..6959fa0f64b6 100644 --- a/drivers/watchdog/ts72xx_wdt.c +++ b/drivers/watchdog/ts72xx_wdt.c | |||
@@ -394,10 +394,8 @@ static int ts72xx_wdt_probe(struct platform_device *pdev) | |||
394 | int error = 0; | 394 | int error = 0; |
395 | 395 | ||
396 | wdt = devm_kzalloc(&pdev->dev, sizeof(struct ts72xx_wdt), GFP_KERNEL); | 396 | wdt = devm_kzalloc(&pdev->dev, sizeof(struct ts72xx_wdt), GFP_KERNEL); |
397 | if (!wdt) { | 397 | if (!wdt) |
398 | dev_err(&pdev->dev, "failed to allocate memory\n"); | ||
399 | return -ENOMEM; | 398 | return -ENOMEM; |
400 | } | ||
401 | 399 | ||
402 | r1 = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 400 | r1 = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
403 | wdt->control_reg = devm_ioremap_resource(&pdev->dev, r1); | 401 | wdt->control_reg = devm_ioremap_resource(&pdev->dev, r1); |