Commit 5b232c5a authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Linus Walleij

pinctrl: tegra: return correct error type

When memory allocation failed, drive should return error as ENOMEM.
Signed-off-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e7f2a444
...@@ -645,7 +645,7 @@ int tegra_pinctrl_probe(struct platform_device *pdev, ...@@ -645,7 +645,7 @@ int tegra_pinctrl_probe(struct platform_device *pdev,
GFP_KERNEL); GFP_KERNEL);
if (!pmx->regs) { if (!pmx->regs) {
dev_err(&pdev->dev, "Can't alloc regs pointer\n"); dev_err(&pdev->dev, "Can't alloc regs pointer\n");
return -ENODEV; return -ENOMEM;
} }
for (i = 0; i < pmx->nbanks; i++) { for (i = 0; i < pmx->nbanks; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment