mbox series

[-next,v2,0/2] drm: Do not check for 0 return after calling platform_get_irq()

Message ID 20230803040401.3067484-1-ruanjinjie@huawei.com (mailing list archive)
Headers show
Series drm: Do not check for 0 return after calling platform_get_irq() | expand

Message

Jinjie Ruan Aug. 3, 2023, 4:03 a.m. UTC
Since commit a85a6c86c25b ("driver core: platform: Clarify that
IRQ 0 is invalid"), there is no possible both for platform_get_irq() 
and platform_get_irq_byname() to return 0.

And the return value of platform_get_irq() or platform_get_irq_byname() 
is more sensible to show the error reason.

Changes in v2:
  - Update the cover letter to fix the style warning.

Ruan Jinjie (2):
  drm/panfrost: Do not check for 0 return after calling
    platform_get_irq_byname()
  drm/mediatek: Do not check for 0 return after calling
    platform_get_irq()

 drivers/gpu/drm/mediatek/mtk_dpi.c      | 4 ++--
 drivers/gpu/drm/panfrost/panfrost_gpu.c | 4 ++--
 drivers/gpu/drm/panfrost/panfrost_job.c | 4 ++--
 drivers/gpu/drm/panfrost/panfrost_mmu.c | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)