summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2016-06-28 13:21:09 +0200
committerMyungJoo Ham <myungjoo.ham@samsung.com>2016-07-06 13:11:24 +0900
commitc07e074b7cae0eff47453f96438c9a867aa6f82e (patch)
tree314dbea16d20d854ef1a5d17df11a96ddedaeb31 /drivers/devfreq
parenta63eb1a6aba46677602756167cdc981d2fa2ef62 (diff)
downloadlinux-stable-c07e074b7cae0eff47453f96438c9a867aa6f82e.tar.gz
linux-stable-c07e074b7cae0eff47453f96438c9a867aa6f82e.tar.bz2
linux-stable-c07e074b7cae0eff47453f96438c9a867aa6f82e.zip
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 <b.zolnierkie@samsung.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r--drivers/devfreq/exynos-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 2363d0a189b7..e946f8f289cb 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) {