pinctrl: tegra: return correct error type
Subsystems (2)
PATCH 1/1 pinctrl: tegra: return correct error type
When memory allocation failed, drive should return error as ENOMEM.
Signed-off-by Laxman Dewangan <[email protected]>
--- drivers/pinctrl/pinctrl-tegra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-tegra.c +1 -1
@@ -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++) {
Signature · 1 line
1.7.9.5
Quoted 1 line · Laxman Dewangan
When memory allocation failed, drive should return error as ENOMEM.
Acked-by Stephen Warren <[email protected]>
Quoted 3 lines · Laxman Dewangan
When memory allocation failed, drive should return error as ENOMEM.
Signed-off-by Laxman Dewangan <[email protected]>
Patch applied for fixes with Stephen's ACK.
Yours,
Linus Walleij