projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa07b8e
)
pwm: rockchip: fix ioremap failed for voppwm
author
David Wu
<david.wu@rock-chips.com>
Tue, 5 Apr 2016 18:26:29 +0000
(
02:26
+0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Mon, 15 Aug 2016 07:26:51 +0000
(15:26 +0800)
Change-Id: I3df7e2ee2b8cb24c4c8aad30cf6d55d11adf0573
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/pwm/pwm-rockchip.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-rockchip.c
b/drivers/pwm/pwm-rockchip.c
index a085b0466659cb1f4b4bd8fbee4323ee5b3f71cd..f11e1fc9f97bc41c7c9096d971fa0bdd3dd300d8 100644
(file)
--- a/
drivers/pwm/pwm-rockchip.c
+++ b/
drivers/pwm/pwm-rockchip.c
@@
-246,7
+246,8
@@
static int rockchip_pwm_probe(struct platform_device *pdev)
return -ENOMEM;
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- pc->base = devm_ioremap_resource(&pdev->dev, r);
+ pc->base = devm_ioremap(&pdev->dev, r->start,
+ resource_size(r));
if (IS_ERR(pc->base))
return PTR_ERR(pc->base);