PM / devfreq: exynos: fix error path in exynos_bus_probe()
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 28 Jun 2016 11:21:09 +0000 (13:21 +0200)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 6 Jul 2016 04:11:24 +0000 (13:11 +0900)
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 <b.zolnierkie@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/exynos-bus.c

index 2363d0a..e946f8f 100644 (file)
@@ -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) {