projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f2a44
)
pinctrl: tegra: return correct error type
author
Laxman Dewangan
<ldewangan@nvidia.com>
Wed, 5 Feb 2014 13:41:34 +0000
(19:11 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 6 Feb 2014 13:21:19 +0000
(14:21 +0100)
When memory allocation failed, drive should return error as ENOMEM.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-tegra.c
b/drivers/pinctrl/pinctrl-tegra.c
index
a2e93a2
..
e767355
100644
(file)
--- a/
drivers/pinctrl/pinctrl-tegra.c
+++ b/
drivers/pinctrl/pinctrl-tegra.c
@@
-645,7
+645,7
@@
int tegra_pinctrl_probe(struct platform_device *pdev,
GFP_KERNEL);
if (!pmx->regs) {
dev_err(&pdev->dev, "Can't alloc regs pointer\n");
- return -ENO
DEV
;
+ return -ENO
MEM
;
}
for (i = 0; i < pmx->nbanks; i++) {