drm/fb-helper: Use -errno return in restore_mode_unlocked
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Aug 2015 15:20:28 +0000 (17:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Sep 2015 11:45:49 +0000 (13:45 +0200)
commitb7bdf0a87add0fead1550533e328a290d8f9da6c
tree622146baa32fe655ccd4285bd7e1054344017fb2
parent26196f7e11f4b2494a2c14eb789fc61a91207e79
drm/fb-helper: Use -errno return in restore_mode_unlocked

Using bool and returning true upon error is very uncommon. Also an int
return value is actually what all the callers which did check it seem
to have expected.

v2: Restore hunk misplaced in a rebase, spotted by Rob.

Cc: Rob Clark <robdclark@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h