linux/drivers/net/phy/qcom
Robert Marko 1677293ed8 net: phy: qca807x: fix compilation when CONFIG_GPIOLIB is not set
Kernel bot has discovered that if CONFIG_GPIOLIB is not set compilation
will fail.

Upon investigation the issue is that qca807x_gpio() is guarded by a
preprocessor check but then it is called under
if (IS_ENABLED(CONFIG_GPIOLIB)) in the probe call so the compiler will
error out since qca807x_gpio() has not been declared if CONFIG_GPIOLIB has
not been set.

Fixes: d1cb613efb ("net: phy: qcom: add support for QCA807x PHY Family")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202403031332.IGAbZzwq-lkp@intel.com/
Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Simon Horman <horms@kernel.org> # build-tested
Link: https://lore.kernel.org/r/20240305142113.795005-1-robimarko@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-06 20:39:29 -08:00
..
Kconfig net: phy: qcom: add support for QCA807x PHY Family 2024-02-10 15:36:19 +00:00
Makefile net: phy: qcom: add support for QCA807x PHY Family 2024-02-10 15:36:19 +00:00
at803x.c net: phy: provide whether link has changed in c37_read_status 2024-02-10 15:36:19 +00:00
qca83xx.c net: phy: qcom: deatch qca83xx PHY driver from at803x 2024-01-31 16:25:17 -08:00
qca807x.c net: phy: qca807x: fix compilation when CONFIG_GPIOLIB is not set 2024-03-06 20:39:29 -08:00
qca808x.c net: phy: qcom: qca808x: fill in possible_interfaces 2024-03-01 08:56:39 +00:00
qcom-phy-lib.c net: phy: qcom: generalize some qca808x LED functions 2024-02-10 15:36:20 +00:00
qcom.h net: phy: qcom: generalize some qca808x LED functions 2024-02-10 15:36:20 +00:00