drm/gma500: add a missed gma_power_end in error path
authorChuhong Yuan <hslester96@gmail.com>
Mon, 9 Dec 2019 08:57:47 +0000 (16:57 +0800)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Mon, 9 Dec 2019 20:30:03 +0000 (21:30 +0100)
oaktrail_lvds_mode_set() misses a gma_power_end() in an error path.
Add the call to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191209085747.16057-1-hslester96@gmail.com
drivers/gpu/drm/gma500/oaktrail_lvds.c

index 7390403ea1b72de3347fd9fd61a96b7b3c96fbd2..582e095975002de841d032a5f53f364ceebf6bc0 100644 (file)
@@ -117,6 +117,7 @@ static void oaktrail_lvds_mode_set(struct drm_encoder *encoder,
 
        if (!connector) {
                DRM_ERROR("Couldn't find connector when setting mode");
+               gma_power_end(dev);
                return;
        }