From: Alexandre Courbot Date: Sat, 1 Mar 2014 05:00:59 +0000 (+0900) Subject: drm/panel: remove redundant regulator_disable() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=887eb66e3ab2df12b09266724410a66c9400979a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/panel: remove redundant regulator_disable() regulator_disable() is already performed by panel_simple_disable(), which is called by panel_simple_remove(). Signed-off-by: Alexandre Courbot Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 87cc238c8a85..71566d82e482 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -259,8 +259,6 @@ static int panel_simple_remove(struct device *dev) if (panel->backlight) put_device(&panel->backlight->dev); - regulator_disable(panel->supply); - return 0; }