diff options
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c b/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c index f5a92b2a5cd6..adad6a7acabe 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c | |||
@@ -13,6 +13,7 @@ | |||
13 | 13 | ||
14 | #include "aq_drvinfo.h" | 14 | #include "aq_drvinfo.h" |
15 | 15 | ||
16 | #if IS_REACHABLE(CONFIG_HWMON) | ||
16 | static int aq_hwmon_read(struct device *dev, enum hwmon_sensor_types type, | 17 | static int aq_hwmon_read(struct device *dev, enum hwmon_sensor_types type, |
17 | u32 attr, int channel, long *value) | 18 | u32 attr, int channel, long *value) |
18 | { | 19 | { |
@@ -123,3 +124,7 @@ int aq_drvinfo_init(struct net_device *ndev) | |||
123 | 124 | ||
124 | return err; | 125 | return err; |
125 | } | 126 | } |
127 | |||
128 | #else | ||
129 | int aq_drvinfo_init(struct net_device *ndev) { return 0; } | ||
130 | #endif | ||