X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fwatchdog%2Forion_wdt.c;h=7c18b3bffcf74ab0845fb8796659d297c618e6ed;hb=89f883372fa60f604d136924baf3e89ff1870e9e;hp=0478b001b1efbb1621613e07b438fa4bbad7cf32;hpb=2d4dce0070448bcb5ccd04553a4be4635417f565;p=karo-tx-linux.git diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 0478b001b1ef..7c18b3bffcf7 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -156,6 +156,8 @@ static int orion_wdt_probe(struct platform_device *pdev) wdt_tclk = clk_get_rate(clk); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + if (!res) + return -ENODEV; wdt_reg = devm_ioremap(&pdev->dev, res->start, resource_size(res)); if (!wdt_reg) return -ENOMEM;