summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-01-31 15:45:13 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-07-02 16:36:35 +0100
commita041050d2910c634ac8b2fdb7bfd64ad394975bf (patch)
tree173bd5e1403034bf2035efbea85ed2de21f33938 /include/linux
parent485c23aeaae079ba260a176bf22a697d884b3a8a (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')
-rw-r--r--include/linux/sfp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sfp.h b/include/linux/sfp.h
index d1f343853b6c..26eacf6fa46f 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);