Commit f403d718 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'linux-watchdog-5.0-rc-fixes' of git://www.linux-watchdog.org/linux-watchdog

Pull watchdog fixes from Wim Van Sebroeck:

 - mt7621_wdt/rt2880_wdt: Fix compilation problem

 - tqmx86: Fix a couple IS_ERR() vs NULL bugs

* tag 'linux-watchdog-5.0-rc-fixes' of git://www.linux-watchdog.org/linux-watchdog:
  watchdog: tqmx86: Fix a couple IS_ERR() vs NULL bugs
  watchdog: mt7621_wdt/rt2880_wdt: Fix compilation problem
parents b0efca46 4a22fc53
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/watchdog.h> #include <linux/watchdog.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mod_devicetable.h>
#include <asm/mach-ralink/ralink_regs.h> #include <asm/mach-ralink/ralink_regs.h>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <linux/watchdog.h> #include <linux/watchdog.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/mod_devicetable.h>
#include <asm/mach-ralink/ralink_regs.h> #include <asm/mach-ralink/ralink_regs.h>
......
...@@ -79,13 +79,13 @@ static int tqmx86_wdt_probe(struct platform_device *pdev) ...@@ -79,13 +79,13 @@ static int tqmx86_wdt_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_IO, 0); res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (IS_ERR(res)) if (!res)
return PTR_ERR(res); return -ENODEV;
priv->io_base = devm_ioport_map(&pdev->dev, res->start, priv->io_base = devm_ioport_map(&pdev->dev, res->start,
resource_size(res)); resource_size(res));
if (IS_ERR(priv->io_base)) if (!priv->io_base)
return PTR_ERR(priv->io_base); return -ENOMEM;
watchdog_set_drvdata(&priv->wdd, priv); watchdog_set_drvdata(&priv->wdd, priv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment