From: Shawn Guo Date: Wed, 10 Sep 2014 14:10:43 +0000 (+0800) Subject: imx-drm: ipuv3-plane: remove function ipu_plane_dpms() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~222 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b46355f0f77f6553ad6079ffd6ee5adfb8ca7a8b;p=pandora-kernel.git imx-drm: ipuv3-plane: remove function ipu_plane_dpms() All those ipu_*_put() calls in ipu_plane_dpms() are unnecessary, because the only occurrence of ipu_plane_dpms() with 'mode' not being DRM_MODE_DPMS_ON is in function ipu_disable_plane(), which already has a ipu_plane_put_resources() call to put those ipu resources right after ipu_plane_dpms(). So with those redundant ipu_*_put() calls removed from ipu_plane_dpms(), the only left code in the function is ipu_plane_enable|disable(). Thus, we can just call ipu_plane_enable|disable() as needed directly and remove the ipu_plane_dpms() function completely. Suggested-by: Philipp Zabel Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed