summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/0051-no-wakeup_path/ssb.patch12
-rw-r--r--patches/0069-remove-of_irq/bcma.patch24
2 files changed, 36 insertions, 0 deletions
diff --git a/patches/0051-no-wakeup_path/ssb.patch b/patches/0051-no-wakeup_path/ssb.patch
new file mode 100644
index 00000000..dcebbcdf
--- /dev/null
+++ b/patches/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_IS_GEQ(3,2,0)
+ device_set_wakeup_enable(d, d->power.wakeup_path);
++#endif /* LINUX_VERSION_IS_GEQ(3,2,0) */
+
+ pci_prepare_to_sleep(dev);
+
diff --git a/patches/0069-remove-of_irq/bcma.patch b/patches/0069-remove-of_irq/bcma.patch
new file mode 100644
index 00000000..b8a05ae8
--- /dev/null
+++ b/patches/0069-remove-of_irq/bcma.patch
@@ -0,0 +1,24 @@
+--- a/drivers/bcma/main.c
++++ b/drivers/bcma/main.c
+@@ -156,6 +156,7 @@ static struct device_node *bcma_of_find_
+ return NULL;
+ }
+
++#if LINUX_VERSION_IS_GEQ(3,13,0)
+ static int bcma_of_irq_parse(struct device *parent,
+ struct bcma_device *core,
+ struct of_phandle_args *out_irq, int num)
+@@ -195,6 +196,13 @@ static unsigned int bcma_of_get_irq(stru
+
+ return irq_create_of_mapping(&out_irq);
+ }
++#else
++static unsigned int bcma_of_get_irq(struct device *parent,
++ struct bcma_device *core, int num)
++{
++ return 0;
++}
++#endif
+
+ static void bcma_of_fill_device(struct device *parent,
+ struct bcma_device *core)