Skip to content

Commit

Permalink
drm/fb helper: don't call drm_crtc_helper_set_config
Browse files Browse the repository at this point in the history
Go through the interface vtable instead, because not everyone might be
using the crtc helper code.

Cc: [email protected]
Signed-Off-by: Daniel Vetter <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
danvet authored and airlied committed Jul 20, 2012
1 parent 343065a commit d390475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_fb_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper)
int i, ret;
for (i = 0; i < fb_helper->crtc_count; i++) {
struct drm_mode_set *mode_set = &fb_helper->crtc_info[i].mode_set;
ret = drm_crtc_helper_set_config(mode_set);
ret = mode_set->crtc->funcs->set_config(mode_set);
if (ret)
error = true;
}
Expand Down

0 comments on commit d390475

Please sign in to comment.