summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2012-05-16 11:06:38 +0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-06-14 14:12:41 +0400
commit6cbc52ef10ba3c7fbd8954270c025ffbf643ab05 (patch)
treeeb353dadea5cb905193a10e68b14c174fea73af7 /drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
parent4f8a91ad9aafbc7c70097a16404fa89aa41c8deb (diff)
downloadlinux-6cbc52ef10ba3c7fbd8954270c025ffbf643ab05.tar.xz
ixgbe: do not compile ixgbe_sysfs.c when CONFIG_IXGBE_HWMON is not set
ixgbe_sysfs.c is only needed when CONFIG_IXGBE_HWMON is configured in the kernel. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Acked-by: Don Skidmore <Donald.c.skidmore@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
index 1d80b1cefa6a..2334fce47018 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
@@ -37,7 +37,6 @@
#include <linux/netdevice.h>
#include <linux/hwmon.h>
-#ifdef CONFIG_IXGBE_HWMON
/* hwmon callback functions */
static ssize_t ixgbe_hwmon_show_location(struct device *dev,
struct device_attribute *attr,
@@ -241,5 +240,4 @@ err:
exit:
return rc;
}
-#endif /* CONFIG_IXGBE_HWMON */