drm/gma500: remove helper function
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 2 Feb 2016 06:05:55 +0000 (11:35 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Feb 2016 09:03:17 +0000 (10:03 +0100)
commitdb9b60400f9253c25ae639797df2d0ff7a35d9d8
tree6ca8c770ee4be9da2daeda5f471332c35ef9cee0
parent1c0230de6dd096e46c46294e93ba68cc16f70331
drm/gma500: remove helper function

We were getting build warning about:
drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:2: warning: initialization
from incompatible pointer type

The callback to dpms was pointing to a helper function which had a
return type of void, whereas the callback should point to a function
which has a return type of int.
On closer look it turned out that we do not need the helper function
since if we call drm_helper_connector_dpms() directly, the first check
that drm_helper_connector_dpms() does is: if (mode == connector->dpms)

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1454393155-13142-1-git-send-email-sudipm.mukherjee@gmail.com
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/gma500/mdfld_dsi_output.c