summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-03-28 20:12:18 +0100
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-03-28 17:35:18 -0700
commit9a84330e9e8ee13a7b2c42a4083958beee0d27c4 (patch)
tree4dee5185ee64d0d2fb8a84ed9ff7d5af7c5378ff /patches/collateral-evolutions
parentd1576670ede9a5b86b47ddee9462f84e08fec342 (diff)
compat-drivers: fix signature for struct bin_attribute
The signature for struct bin_attribute.read changed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'patches/collateral-evolutions')
-rw-r--r--patches/collateral-evolutions/network/71-bin_attribute-api-change.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/71-bin_attribute-api-change.patch b/patches/collateral-evolutions/network/71-bin_attribute-api-change.patch
new file mode 100644
index 00000000..24256608
--- /dev/null
+++ b/patches/collateral-evolutions/network/71-bin_attribute-api-change.patch
@@ -0,0 +1,14 @@
+--- a/drivers/net/wireless/ti/wlcore/main.c
++++ b/drivers/net/wireless/ti/wlcore/main.c
+@@ -5518,7 +5518,11 @@ static ssize_t wl1271_sysfs_show_hw_pg_v
+ static DEVICE_ATTR(hw_pg_ver, S_IRUGO,
+ wl1271_sysfs_show_hw_pg_ver, NULL);
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+ static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj,
++#else
++static ssize_t wl1271_sysfs_read_fwlog(struct kobject *kobj,
++#endif
+ struct bin_attribute *bin_attr,
+ char *buffer, loff_t pos, size_t count)
+ {