Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: si476x: Add GPIOLIB_LEGACY dependency

This driver uses the legacy gpiolib interfaces to get gpio
numbers from platform data:

drivers/mfd/si476x-i2c.c: In function 'si476x_core_start':
drivers/mfd/si476x-i2c.c:133:21: error: implicit declaration of function 'gpio_is_valid'; did you mean 'uuid_is_valid'? [-Werror=implicit-function-declaration]
133 | if (gpio_is_valid(core->gpio_reset))

There are no in-tree users of this driver, so nothing defines
the platform data.

Add a dependency on GPIOLIB_LEGACY for the moment to avoid the build
failure, and make sure the sound driver does not get built without the
mfd portion either pass that dependency along.

Alternatively, we could remove the mfd driver along with the radio and
sound portions.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507231653.UFlH2dMO-lkp@intel.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250808151822.536879-14-arnd@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Arnd Bergmann and committed by
Lee Jones
e399d779 3d6a17fc

+2
+1
drivers/mfd/Kconfig
··· 1426 1426 config MFD_SI476X_CORE 1427 1427 tristate "Silicon Laboratories 4761/64/68 AM/FM radio." 1428 1428 depends on I2C 1429 + depends on GPIOLIB_LEGACY 1429 1430 select MFD_CORE 1430 1431 select REGMAP_I2C 1431 1432 help
+1
sound/soc/codecs/Kconfig
··· 1902 1902 1903 1903 config SND_SOC_SI476X 1904 1904 tristate 1905 + depends on MFD_SI476X_CORE 1905 1906 1906 1907 config SND_SOC_SIGMADSP 1907 1908 tristate