mirror of https://gitee.com/openkylin/linux.git
drm/tilcdc: Nuke preclose hook
Again since the drm core takes care of event unlinking/disarming this is now just needless code. v2: Fixup misplaced hunks. Cc: Rob Clark <robdclark@gmail.com> Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1) Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1453756616-28942-13-git-send-email-daniel.vetter@ffwll.ch
This commit is contained in:
parent
0417d424ac
commit
b19ac0b05d
|
@ -662,26 +662,6 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tilcdc_crtc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file)
|
|
||||||
{
|
|
||||||
struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc);
|
|
||||||
struct drm_pending_vblank_event *event;
|
|
||||||
struct drm_device *dev = crtc->dev;
|
|
||||||
unsigned long flags;
|
|
||||||
|
|
||||||
/* Destroy the pending vertical blanking event associated with the
|
|
||||||
* pending page flip, if any, and disable vertical blanking interrupts.
|
|
||||||
*/
|
|
||||||
spin_lock_irqsave(&dev->event_lock, flags);
|
|
||||||
event = tilcdc_crtc->event;
|
|
||||||
if (event && event->base.file_priv == file) {
|
|
||||||
tilcdc_crtc->event = NULL;
|
|
||||||
event->base.destroy(&event->base);
|
|
||||||
drm_vblank_put(dev, 0);
|
|
||||||
}
|
|
||||||
spin_unlock_irqrestore(&dev->event_lock, flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev)
|
struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct tilcdc_crtc *tilcdc_crtc;
|
struct tilcdc_crtc *tilcdc_crtc;
|
||||||
|
|
|
@ -350,13 +350,6 @@ static int tilcdc_load(struct drm_device *dev, unsigned long flags)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tilcdc_preclose(struct drm_device *dev, struct drm_file *file)
|
|
||||||
{
|
|
||||||
struct tilcdc_drm_private *priv = dev->dev_private;
|
|
||||||
|
|
||||||
tilcdc_crtc_cancel_page_flip(priv->crtc, file);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void tilcdc_lastclose(struct drm_device *dev)
|
static void tilcdc_lastclose(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct tilcdc_drm_private *priv = dev->dev_private;
|
struct tilcdc_drm_private *priv = dev->dev_private;
|
||||||
|
@ -557,7 +550,6 @@ static struct drm_driver tilcdc_driver = {
|
||||||
.driver_features = DRIVER_HAVE_IRQ | DRIVER_GEM | DRIVER_MODESET,
|
.driver_features = DRIVER_HAVE_IRQ | DRIVER_GEM | DRIVER_MODESET,
|
||||||
.load = tilcdc_load,
|
.load = tilcdc_load,
|
||||||
.unload = tilcdc_unload,
|
.unload = tilcdc_unload,
|
||||||
.preclose = tilcdc_preclose,
|
|
||||||
.lastclose = tilcdc_lastclose,
|
.lastclose = tilcdc_lastclose,
|
||||||
.set_busid = drm_platform_set_busid,
|
.set_busid = drm_platform_set_busid,
|
||||||
.irq_handler = tilcdc_irq,
|
.irq_handler = tilcdc_irq,
|
||||||
|
|
|
@ -163,7 +163,6 @@ struct tilcdc_panel_info {
|
||||||
#define DBG(fmt, ...) DRM_DEBUG(fmt"\n", ##__VA_ARGS__)
|
#define DBG(fmt, ...) DRM_DEBUG(fmt"\n", ##__VA_ARGS__)
|
||||||
|
|
||||||
struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev);
|
struct drm_crtc *tilcdc_crtc_create(struct drm_device *dev);
|
||||||
void tilcdc_crtc_cancel_page_flip(struct drm_crtc *crtc, struct drm_file *file);
|
|
||||||
irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc);
|
irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc);
|
||||||
void tilcdc_crtc_update_clk(struct drm_crtc *crtc);
|
void tilcdc_crtc_update_clk(struct drm_crtc *crtc);
|
||||||
void tilcdc_crtc_set_panel_info(struct drm_crtc *crtc,
|
void tilcdc_crtc_set_panel_info(struct drm_crtc *crtc,
|
||||||
|
|
Loading…
Reference in New Issue