diff options
author | Linus Walleij <[email protected]> | 2022-10-28 11:23:32 +0200 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2022-11-04 12:59:25 +0200 |
commit | 2b6c0e152868c9c5939a5c5094d5b2be61cf48e6 (patch) | |
tree | d20b23dcaf1822bd1857ecee2fdb2c38df825ee6 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 81d17f6f3331f03c8eafdacea68ab773426c1e3c (diff) |
bcma: Use the proper gpio include
The <linux/bcma/bcma_driver_chipcommon.h> is including the legacy
header <linux/gpio.h> to obtain struct gpio_chip. Instead, include
<linux/gpio/driver.h> where this struct is defined.
It turns out that the brcm80211 brcmsmac depends on this to
bring in the symbol gpio_is_valid().
The driver looks up the BCMA parent GPIO driver and checks that
this succeeds, but then it goes on to use the deprecated GPIO
call gpio_is_valid() to check the consistency of the .base
member of the BCMA GPIO struct. The whole check can be dropped
because the bcma_gpio is initialized in the declarations:
struct gpio_chip *bcma_gpio = &cc_drv->gpio;
And this can never be NULL.
Cc: Jonas Gorski <[email protected]>
Acked-by: Arend van Spriel <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions