mbox series

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

Message ID 20230803031622.3023868-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, 3:16 a.m. UTC
Since commit a85a6c86c25be ("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.

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(-)