1
0
Fork 0

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>
wifi-calibration
Laxman Dewangan 2014-02-05 19:11:34 +05:30 committed by Linus Walleij
parent e7f2a44489
commit 5b232c5add
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {