projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f01ef0a
)
timer: cadence: Use live-tree functions
author
Michal Simek
<michal.simek@xilinx.com>
Wed, 16 May 2018 08:56:09 +0000
(10:56 +0200)
committer
Michal Simek
<michal.simek@xilinx.com>
Thu, 31 May 2018 11:50:39 +0000
(13:50 +0200)
Use live-tree functions.
Reported-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/cadence-ttc.c
patch
|
blob
|
history
diff --git
a/drivers/timer/cadence-ttc.c
b/drivers/timer/cadence-ttc.c
index 5b91c8a90b345aff94580c7b309bfc17fb6c450a..3541e5c841278fa308697ef94876406ebd7f9634 100644
(file)
--- a/
drivers/timer/cadence-ttc.c
+++ b/
drivers/timer/cadence-ttc.c
@@
-64,8
+64,10
@@
static int cadence_ttc_ofdata_to_platdata(struct udevice *dev)
{
struct cadence_ttc_priv *priv = dev_get_priv(dev);
- priv->regs = map_physmem(dev
fdt_get
_addr(dev),
+ priv->regs = map_physmem(dev
_read
_addr(dev),
sizeof(struct cadence_ttc_regs), MAP_NOCACHE);
+ if (IS_ERR(priv->regs))
+ return PTR_ERR(priv->regs);
return 0;
}