Merge tag 'exfat-for-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linki...
[linux-2.6-microblaze.git] / drivers / watchdog / sunxi_wdt.c
index 5f05a45..b507578 100644 (file)
@@ -235,7 +235,7 @@ static int sunxi_wdt_probe(struct platform_device *pdev)
 
        sunxi_wdt = devm_kzalloc(dev, sizeof(*sunxi_wdt), GFP_KERNEL);
        if (!sunxi_wdt)
-               return -EINVAL;
+               return -ENOMEM;
 
        sunxi_wdt->wdt_regs = of_device_get_match_data(dev);
        if (!sunxi_wdt->wdt_regs)