projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbfef40
)
rockchip: pwm: convert to use live dt
author
Kever Yang
<kever.yang@rock-chips.com>
Thu, 8 Feb 2018 13:15:21 +0000
(21:15 +0800)
committer
Philipp Tomsich
<philipp.tomsich@theobroma-systems.com>
Tue, 13 Mar 2018 17:12:35 +0000
(18:12 +0100)
use live dt api to get base addr
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/pwm/rk_pwm.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/rk_pwm.c
b/drivers/pwm/rk_pwm.c
index 2364c2dfddc9ad9473ed5196a5dde120a432ded4..7d3e11d667412d5b4dc966232cf7d330600a975e 100644
(file)
--- a/
drivers/pwm/rk_pwm.c
+++ b/
drivers/pwm/rk_pwm.c
@@
-76,7
+76,7
@@
static int rk_pwm_ofdata_to_platdata(struct udevice *dev)
{
struct rk_pwm_priv *priv = dev_get_priv(dev);
- priv->regs = (struct rk3288_pwm *)dev
fdt_get
_addr(dev);
+ priv->regs = (struct rk3288_pwm *)dev
_read
_addr(dev);
return 0;
}