compat-drivers: fix signature for struct bin_attribute
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 28 Mar 2013 19:12:18 +0000 (20:12 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 29 Mar 2013 00:35:18 +0000 (17:35 -0700)
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>
patches/collateral-evolutions/network/71-bin_attribute-api-change.patch [new file with mode: 0644]

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 (file)
index 0000000..2425660
--- /dev/null
@@ -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)
+ {