Commit 3ec2e506 authored by Liu Ying's avatar Liu Ying Committed by Philipp Zabel

drm/imx: Remove imx_drm_handle_vblank()

imx_drm_handle_vblank() is just a simple wrapper of drm_crtc_handle_vblank()
without doing any thing fancy - drm_crtc_handle_vblank() can be called
directly.  So, let's remove the wrapper.
Signed-off-by: default avatarLiu Ying <gnuiyl@gmail.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent bc0a3387
...@@ -84,12 +84,6 @@ static int imx_drm_driver_unload(struct drm_device *drm) ...@@ -84,12 +84,6 @@ static int imx_drm_driver_unload(struct drm_device *drm)
return 0; return 0;
} }
void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc)
{
drm_crtc_handle_vblank(imx_drm_crtc->crtc);
}
EXPORT_SYMBOL_GPL(imx_drm_handle_vblank);
static int imx_drm_enable_vblank(struct drm_device *drm, unsigned int pipe) static int imx_drm_enable_vblank(struct drm_device *drm, unsigned int pipe)
{ {
struct imx_drm_device *imxdrm = drm->dev_private; struct imx_drm_device *imxdrm = drm->dev_private;
......
...@@ -42,8 +42,6 @@ int imx_drm_init_drm(struct platform_device *pdev, ...@@ -42,8 +42,6 @@ int imx_drm_init_drm(struct platform_device *pdev,
int preferred_bpp); int preferred_bpp);
int imx_drm_exit_drm(void); int imx_drm_exit_drm(void);
void imx_drm_handle_vblank(struct imx_drm_crtc *imx_drm_crtc);
void imx_drm_mode_config_init(struct drm_device *drm); void imx_drm_mode_config_init(struct drm_device *drm);
struct drm_gem_cma_object *imx_drm_fb_get_obj(struct drm_framebuffer *fb); struct drm_gem_cma_object *imx_drm_fb_get_obj(struct drm_framebuffer *fb);
......
...@@ -134,7 +134,7 @@ static irqreturn_t ipu_irq_handler(int irq, void *dev_id) ...@@ -134,7 +134,7 @@ static irqreturn_t ipu_irq_handler(int irq, void *dev_id)
{ {
struct ipu_crtc *ipu_crtc = dev_id; struct ipu_crtc *ipu_crtc = dev_id;
imx_drm_handle_vblank(ipu_crtc->imx_crtc); drm_crtc_handle_vblank(&ipu_crtc->base);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment