ipmi_si: Avoid spurious errors for optional IRQs
authorTakashi Iwai <tiwai@suse.de>
Wed, 5 Feb 2020 09:31:46 +0000 (10:31 +0100)
committerCorey Minyard <cminyard@mvista.com>
Thu, 12 Mar 2020 02:15:19 +0000 (21:15 -0500)
commit443d372d6a96cd94ad119e5c14bb4d63a536a7f6
treeb6b23ed7a2408b14faa6bf6c331f4a86a772c046
parentca7e1fd1026c5af6a533b4b5447e1d2f153e28f2
ipmi_si: Avoid spurious errors for optional IRQs

Although the IRQ assignment in ipmi_si driver is optional,
platform_get_irq() spews error messages unnecessarily:
  ipmi_si dmi-ipmi-si.0: IRQ index 0 not found

Fix this by switching to platform_get_irq_optional().

Cc: stable@vger.kernel.org # 5.4.x
Cc: John Donnelly <john.p.donnelly@oracle.com>
Fixes: 7723f4c5ecdb ("driver core: platform: Add an error message to platform_get_irq*()")
Reported-and-tested-by: Patrick Vo <patrick.vo@hpe.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-Id: <20200205093146.1352-1-tiwai@suse.de>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_platform.c