i2c: brcmstb: Fix handling of optional interrupt
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Sat, 25 Apr 2020 21:38:07 +0000 (23:38 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 26 Apr 2020 08:00:29 +0000 (10:00 +0200)
commitaef6f2e7cec184fac0ef50958b759e9605ed8128
treeb301944d1d7f60474801efbb6b7c8b7e152ad071
parent88fb09c409255a3deb75f5d133dd77e70a1075c9
i2c: brcmstb: Fix handling of optional interrupt

If there is no interrupt defined then an error is logged due
to the use of platform_get_irq. The driver handles not having
the interrupt by falling back to polling, therefore make
the appropriate call when claiming it.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-brcmstb.c