Skip to content

Commit

Permalink
drm/tilcdc: Remove unnecessary pm_runtime_get() and *_put() calls
Browse files Browse the repository at this point in the history
Remove unnecessary pm_runtime_get() and *_put() calls from commit
phase callbacks. Those calls are not needed since we have the whole
commit phase between pm_runtime_get_sync() and pm_runtime_put_sync().

Signed-off-by: Jyri Sarha <[email protected]>
  • Loading branch information
Jyri Sarha committed Aug 8, 2016
1 parent 47bfd6c commit d81b7f3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/gpu/drm/tilcdc/tilcdc_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ int tilcdc_crtc_page_flip(struct drm_crtc *crtc,

crtc->primary->fb = fb;

pm_runtime_get_sync(dev->dev);

spin_lock_irqsave(&tilcdc_crtc->irq_lock, flags);

if (crtc->hwmode.vrefresh && ktime_to_ns(tilcdc_crtc->last_vblank)) {
Expand All @@ -267,8 +265,6 @@ int tilcdc_crtc_page_flip(struct drm_crtc *crtc,

spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, flags);

pm_runtime_put_sync(dev->dev);

return 0;
}

Expand Down Expand Up @@ -317,8 +313,6 @@ static void tilcdc_crtc_mode_set_nofb(struct drm_crtc *crtc)
if (WARN_ON(!fb))
return;

pm_runtime_get_sync(dev->dev);

/* Configure the Burst Size and fifo threshold of DMA: */
reg = tilcdc_read(dev, LCDC_DMA_CTRL_REG) & ~0x00000770;
switch (info->dma_burst_sz) {
Expand Down Expand Up @@ -467,8 +461,6 @@ static void tilcdc_crtc_mode_set_nofb(struct drm_crtc *crtc)

tilcdc_crtc_update_clk(crtc);

pm_runtime_put_sync(dev->dev);

crtc->hwmode = crtc->state->adjusted_mode;
}

Expand Down

0 comments on commit d81b7f3

Please sign in to comment.