Skip to content

Commit

Permalink
drm/gma500: add a missed gma_power_end in error path
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chuhong Yuan authored and Patrik Jakobsson committed Dec 9, 2019
1 parent 1b69e89 commit 4286dc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/gma500/oaktrail_lvds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4286dc0

Please sign in to comment.