Skip to content

Commit

Permalink
drm: xlnx: vtc: Return IRQ_NONE for no interrupt
Browse files Browse the repository at this point in the history
Return IRQ_NONE in the interrupt handler, when there's no interrupt.

Signed-off-by: Hyun Kwon <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
State: pending
  • Loading branch information
xlnx-hyunkwon authored and Michal Simek committed Feb 12, 2020
1 parent 61f5ba1 commit 974054e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/xlnx/xlnx_vtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ static irqreturn_t xilinx_vtc_intr_handler(int irq, void *data)

u32 intr = xlnx_vtc_intr_get(vtc);

if (!intr)
return IRQ_NONE;

if ((intr & VTC_IXR_G_VBLANK) && (vtc->vblank_fn))
vtc->vblank_fn(vtc->vblank_data);

Expand Down

0 comments on commit 974054e

Please sign in to comment.