From: Bartlomiej Zolnierkiewicz Date: Tue, 28 Jun 2016 11:21:09 +0000 (+0200) Subject: PM / devfreq: exynos: fix error path in exynos_bus_probe() X-Git-Tag: v4.8-rc1~158^2~6^2^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c07e074b7cae0eff47453f96438c9a867aa6f82e;p=thirdparty%2Fkernel%2Fstable.git PM / devfreq: exynos: fix error path in exynos_bus_probe() In case of exynos_bus_parse_of() failure the code shouldn't try to remove the OPP table and disable+unprepare bus->clk as it has been already handled in exynos_bus_parse_of(). Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Chanwoo Choi Signed-off-by: MyungJoo Ham --- diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c index 2363d0a189b77..e946f8f289cbf 100644 --- a/drivers/devfreq/exynos-bus.c +++ b/drivers/devfreq/exynos-bus.c @@ -407,7 +407,7 @@ static int exynos_bus_probe(struct platform_device *pdev) /* Parse the device-tree to get the resource information */ ret = exynos_bus_parse_of(np, bus); if (ret < 0) - goto err; + return ret; profile = devm_kzalloc(dev, sizeof(*profile), GFP_KERNEL); if (!profile) {