diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-12-21 14:21:08 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-12-21 17:12:09 +0100 |
commit | 5d400b8be397d60bb592cc0cf37628fa337a6d5a (patch) | |
tree | 8d7e1f56bb54ef88d57e9da4b800ea3a1989450b | |
parent | 7b1d71be70a48a34a33648b07905acb68acbf514 (diff) |
atches: fix ssb compile
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@hauke-m.de>
-rw-r--r-- | patches/collateral-evolutions/network/0051-no-wakeup_path/ssb.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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 00000000..23bab03b --- /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); + |