Skip to contentSkip to conversation

pinctrl: tegra: return correct error type

PATCH In review Laxman Dewangan 3 participants 3 messages Feb 5, 2014 – Feb 6, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: tegra: return correct error type

When memory allocation failed, drive should return error as ENOMEM.

---
 drivers/pinctrl/pinctrl-tegra.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-tegra.c +1 -1
index a2e93a2..e767355 100644
@@ -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