Skip to content

Commit

Permalink
Merge tag 'linux-watchdog-5.0-rc-fixes' of git://www.linux-watchdog.o…
Browse files Browse the repository at this point in the history
…rg/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
  • Loading branch information
torvalds committed Jan 19, 2019
2 parents b0efca4 + 4a22fc5 commit f403d71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions drivers/watchdog/mt7621_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/watchdog.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/mod_devicetable.h>

#include <asm/mach-ralink/ralink_regs.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/watchdog/rt2880_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/watchdog.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/mod_devicetable.h>

#include <asm/mach-ralink/ralink_regs.h>

Expand Down
8 changes: 4 additions & 4 deletions drivers/watchdog/tqmx86_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ static int tqmx86_wdt_probe(struct platform_device *pdev)
return -ENOMEM;

res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (IS_ERR(res))
return PTR_ERR(res);
if (!res)
return -ENODEV;

priv->io_base = devm_ioport_map(&pdev->dev, res->start,
resource_size(res));
if (IS_ERR(priv->io_base))
return PTR_ERR(priv->io_base);
if (!priv->io_base)
return -ENOMEM;

watchdog_set_drvdata(&priv->wdd, priv);

Expand Down

0 comments on commit f403d71

Please sign in to comment.