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:
parent
0d7614f09c
commit
8abdd2d2d8
1 changed files with 2 additions and 1 deletions
|
@ -241,7 +241,8 @@ static int __devinit sch_gpio_probe(struct platform_device *pdev)
|
|||
break;
|
||||
|
||||
default:
|
||||
return -ENODEV;
|
||||
err = -ENODEV;
|
||||
goto err_sch_gpio_core;
|
||||
}
|
||||
|
||||
sch_gpio_core.dev = &pdev->dev;
|
||||
|
|
Loading…
Reference in a new issue