]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PM / devfreq: Remove redundant platform_set_drvdata() in exynos5_bus.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 5 Jun 2013 06:13:00 +0000 (11:43 +0530)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 28 Oct 2013 11:12:30 +0000 (20:12 +0900)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/exynos/exynos5_bus.c

index cd1e6309887f34d3c4db560e194e863d998461ac..9a82419c29eba5d8d4a5949195103d06e6a8ab3e 100644 (file)
@@ -419,7 +419,6 @@ static int exynos5_busfreq_int_probe(struct platform_device *pdev)
 
 err_devfreq_add:
        devfreq_remove_device(data->devfreq);
-       platform_set_drvdata(pdev, NULL);
 err_opp_add:
        clk_put(data->int_clk);
 err_clock:
@@ -437,7 +436,6 @@ static int exynos5_busfreq_int_remove(struct platform_device *pdev)
        devfreq_remove_device(data->devfreq);
        regulator_put(data->vdd_int);
        clk_put(data->int_clk);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }