projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
drivers
/
pinctrl
/
bcm
/
pinctrl-nsp-mux.c
diff --git
a/drivers/pinctrl/bcm/pinctrl-nsp-mux.c
b/drivers/pinctrl/bcm/pinctrl-nsp-mux.c
index
5cd8166
..
87618a4
100644
(file)
--- a/
drivers/pinctrl/bcm/pinctrl-nsp-mux.c
+++ b/
drivers/pinctrl/bcm/pinctrl-nsp-mux.c
@@
-577,6
+577,8
@@
static int nsp_pinmux_probe(struct platform_device *pdev)
return PTR_ERR(pinctrl->base0);
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
+ if (!res)
+ return -EINVAL;
pinctrl->base1 = devm_ioremap_nocache(&pdev->dev, res->start,
resource_size(res));
if (!pinctrl->base1) {