summaryrefslogtreecommitdiff
path: root/sound/x86/intel_hdmi_lpe_audio.h
diff options
context:
space:
mode:
authorSergey Shtylyov <s.shtylyov@omp.ru>2021-05-30 22:13:45 +0300
committerWolfram Sang <wsa@kernel.org>2021-08-03 23:48:39 +0300
commitf16a3bb69aa6baabf8f0aca982c8cf21e2a4f6bc (patch)
tree376397094388028f38d4a14805898d5674284b0b /sound/x86/intel_hdmi_lpe_audio.h
parenta6b8bb6a813a6621c75ceacd1fa604c0229e9624 (diff)
downloadlinux-f16a3bb69aa6baabf8f0aca982c8cf21e2a4f6bc.tar.xz
i2c: highlander: add IRQ check
The driver is written as if platform_get_irq() returns 0 on errors (while actually it returns a negative error code), blithely passing these error codes to request_irq() (which takes *unsigned* IRQ #) -- which fails with -EINVAL. Add the necessary error check to the pre-existing *if* statement forcing the driver into the polling mode... Fixes: 4ad48e6ab18c ("i2c: Renesas Highlander FPGA SMBus support") Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'sound/x86/intel_hdmi_lpe_audio.h')
0 files changed, 0 insertions, 0 deletions