Skip to content

Commit

Permalink
pinctrl: tegra: return correct error type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laxman Dewangan authored and Linus Walleij committed Feb 6, 2014
1 parent e7f2a44 commit 5b232c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 5b232c5

Please sign in to comment.