mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
pinctrl: bcm2835: Use existing pointer to struct device
The pointer to "pdev->dev" is already stored in "dev", so use it in devm_request_and_ioremap(). Signed-off-by: Tobias Klauser <[email protected]> Acked-by: Stephen Warren <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
47dbec59c3
commit
8c6871979d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue