projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'u-boot-imx-20200825' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[platform/kernel/u-boot.git]
/
drivers
/
watchdog
/
ast_wdt.c
diff --git
a/drivers/watchdog/ast_wdt.c
b/drivers/watchdog/ast_wdt.c
index
7e11465
..
9b83d2a
100644
(file)
--- a/
drivers/watchdog/ast_wdt.c
+++ b/
drivers/watchdog/ast_wdt.c
@@
-90,9
+90,9
@@
static int ast_wdt_ofdata_to_platdata(struct udevice *dev)
{
struct ast_wdt_priv *priv = dev_get_priv(dev);
- priv->regs = dev
fdt_get
_addr_ptr(dev);
- if (
IS_ERR(priv->regs)
)
- return
PTR_ERR(priv->regs)
;
+ priv->regs = dev
_read
_addr_ptr(dev);
+ if (
!priv->regs
)
+ return
-EINVAL
;
return 0;
}