projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47dbec5
)
pinctrl: bcm2835: Use existing pointer to struct device
author
Tobias Klauser
<tklauser@distanz.ch>
Mon, 8 Oct 2012 09:40:36 +0000
(11:40 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 15 Oct 2012 07:09:27 +0000
(09:09 +0200)
The pointer to "pdev->dev" is already stored in "dev", so use it in
devm_request_and_ioremap().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-bcm2835.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-bcm2835.c
b/drivers/pinctrl/pinctrl-bcm2835.c
index
a4adee6
..
3e0cc0d
100644
(file)
--- a/
drivers/pinctrl/pinctrl-bcm2835.c
+++ b/
drivers/pinctrl/pinctrl-bcm2835.c
@@
-960,7
+960,7
@@
static int __devinit bcm2835_pinctrl_probe(struct platform_device *pdev)
return err;
}
- pc->base = devm_request_and_ioremap(
&pdev->
dev, &iomem);
+ pc->base = devm_request_and_ioremap(dev, &iomem);
if (!pc->base)
return -EADDRNOTAVAIL;