summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-tegra.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2014-02-05 14:41:34 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-02-06 14:21:19 +0100
commit5b232c5addc02980cfce451575f1d1f975bdb04e (patch)
treed7506c90004b9ef35c845b31e88dfc801ce75d39 /drivers/pinctrl/pinctrl-tegra.c
parentpinctrl: do not init debugfs entries for unimplemented functionalities (diff)
downloadlinux-5b232c5addc02980cfce451575f1d1f975bdb04e.tar.xz
linux-5b232c5addc02980cfce451575f1d1f975bdb04e.zip
pinctrl: tegra: return correct error type
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>
Diffstat (limited to '')
-rw-r--r--drivers/pinctrl/pinctrl-tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-tegra.c b/drivers/pinctrl/pinctrl-tegra.c
index a2e93a2b5ff4..e767355ab0ad 100644
--- 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 -ENODEV;
+ return -ENOMEM;
}
for (i = 0; i < pmx->nbanks; i++) {