gpio-sch: Fix leak of resource
Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -241,7 +241,8 @@ static int __devinit sch_gpio_probe(struct platform_device *pdev)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return -ENODEV;
|
err = -ENODEV;
|
||||||
|
goto err_sch_gpio_core;
|
||||||
}
|
}
|
||||||
|
|
||||||
sch_gpio_core.dev = &pdev->dev;
|
sch_gpio_core.dev = &pdev->dev;
|
||||||
|
Reference in New Issue
Block a user