diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-01-31 15:45:13 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2021-02-15 14:01:51 +0000 |
commit | 3edd9ac98b7bd7c9c970d67155f0d730def012f8 (patch) | |
tree | 3aa932823254d20d59b9ce58fc39220e9e4f2770 /include/linux/sfp.h | |
parent | de35ed9cff655f085cbe6c8024cffbcdb16401e6 (diff) |
net: sfp: clean up sfp-bus building
Use a Kconfig symbol to control the build of sfp-bus.c
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/linux/sfp.h')
-rw-r--r-- | include/linux/sfp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sfp.h b/include/linux/sfp.h index 2da1a5181779..fe9af556899f 100644 --- a/include/linux/sfp.h +++ b/include/linux/sfp.h @@ -530,7 +530,7 @@ struct sfp_upstream_ops { void (*disconnect_phy)(void *priv); }; -#if IS_ENABLED(CONFIG_SFP) +#if IS_ENABLED(CONFIG_SFP_BUS) int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, unsigned long *support); bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id); |