[PATCH 6/8] atches: fix ssb compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The wakeup_path member was added in kernel 3.2, just ignore this on
older kernel versions. This will break WoL in b44 with these old kernel
versions.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 .../network/0051-no-wakeup_path/ssb.patch                    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 patches/collateral-evolutions/network/0051-no-wakeup_path/ssb.patch

diff --git a/patches/collateral-evolutions/network/0051-no-wakeup_path/ssb.patch b/patches/collateral-evolutions/network/0051-no-wakeup_path/ssb.patch
new file mode 100644
index 0000000..23bab03
--- /dev/null
+++ b/patches/collateral-evolutions/network/0051-no-wakeup_path/ssb.patch
@@ -0,0 +1,12 @@
+--- a/drivers/ssb/pcihost_wrapper.c
++++ b/drivers/ssb/pcihost_wrapper.c
+@@ -33,7 +33,9 @@ static int ssb_pcihost_suspend(struct de
+ 
+ 	/* if there is a wakeup enabled child device on ssb bus,
+ 	   enable pci wakeup posibility. */
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
+ 	device_set_wakeup_enable(d, d->power.wakeup_path);
++#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */
+ 
+ 	pci_prepare_to_sleep(dev);
+ 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux