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:
Alan Cox 2012-07-24 13:55:10 +01:00 committed by Linus Walleij
parent 0d7614f09c
commit 8abdd2d2d8
1 changed files with 2 additions and 1 deletions

View File

@ -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;