提交 5b232c5a 编写于 作者: L Laxman Dewangan 提交者: Linus Walleij

pinctrl: tegra: return correct error type

When memory allocation failed, drive should return error as ENOMEM.
Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
Acked-by: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 e7f2a444
......@@ -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++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册