[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH v4 01/12] backports: igb fixes for linux-3.13
From: Stefan Assmann <sassmann () kpanic ! de>
Date: 2014-01-29 9:18:58
Message-ID: 1390987149-11171-2-git-send-email-sassmann () kpanic ! de
[Download RAW message or body]
- add patches/collateral-evolutions/network/84-ethernet/0013-igb_hwmon.patch
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
---
.../network/84-ethernet/0013-igb_hwmon.patch | 30 ++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 patches/collateral-evolutions/network/84-ethernet/0013-igb_hwmon.patch
diff --git a/patches/collateral-evolutions/network/84-ethernet/0013-igb_hwmon.patch \
b/patches/collateral-evolutions/network/84-ethernet/0013-igb_hwmon.patch new file \
mode 100644 index 0000000..b2db7c2
--- /dev/null
+++ b/patches/collateral-evolutions/network/84-ethernet/0013-igb_hwmon.patch
@@ -0,0 +1,30 @@
+diff --git a/drivers/net/ethernet/intel/igb/igb_hwmon.c \
b/drivers/net/ethernet/intel/igb/igb_hwmon.c +index fdf2b82..99507de 100644
+--- a/drivers/net/ethernet/intel/igb/igb_hwmon.c
++++ b/drivers/net/ethernet/intel/igb/igb_hwmon.c
+@@ -177,7 +177,9 @@ int igb_sysfs_init(struct igb_adapter *adapter)
+ {
+ struct hwmon_buff *igb_hwmon;
+ struct i2c_client *client;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
+ struct device *hwmon_dev;
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) */
+ unsigned int i;
+ int rc = 0;
+
+@@ -234,6 +236,7 @@ int igb_sysfs_init(struct igb_adapter *adapter)
+ igb_hwmon->groups[0] = &igb_hwmon->group;
+ igb_hwmon->group.attrs = igb_hwmon->attrs;
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)
+ hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev,
+ client->name,
+ igb_hwmon,
+@@ -246,6 +249,7 @@ int igb_sysfs_init(struct igb_adapter *adapter)
+ goto exit;
+
+ err:
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0) */
+ igb_sysfs_del_adapter(adapter);
+ exit:
+ return rc;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic