aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-11-01 15:57:30 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-11-01 15:57:30 +0000
commitf7badb86390125351296bed9836cb59e74386e84 (patch)
tree598cd844a89179a797fbc0957ccd1ad12e3054fc /target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch
parent46bc45696ee7652ec502852721bfc1f94756fff7 (diff)
downloadmaster-187ad058-f7badb86390125351296bed9836cb59e74386e84.tar.gz
master-187ad058-f7badb86390125351296bed9836cb59e74386e84.tar.bz2
master-187ad058-f7badb86390125351296bed9836cb59e74386e84.zip
bcm53xx: bcma: get IRQs also from device tree
Add patches for getting the IRQ number for a device of the bcma bus that were send for upstream inclusion. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43148 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch')
-rw-r--r--target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch b/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch
deleted file mode 100644
index e38b5bc1c6..0000000000
--- a/target/linux/bcm53xx/patches-3.18/121-bcma-get-irqs-from-dt.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 6611afa6c49434780096cdf2c1028f0ac277f9bc Mon Sep 17 00:00:00 2001
-From: Hauke Mehrtens <hauke@hauke-m.de>
-Date: Thu, 9 Jan 2014 19:40:14 +0100
-Subject: [PATCH v3 2/2] bcma: get IRQ numbers from dt
-
-It is not possible to auto detect the irq numbers used by the cores on
-an arm SoC. If bcma was registered with device tree it will search for
-some device tree nodes with the irq number and add it to the core
-configuration.
-
-Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
----
- drivers/bcma/main.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
- 1 file changed, 48 insertions(+), 1 deletion(-)
-
---- a/drivers/bcma/main.c
-+++ b/drivers/bcma/main.c
-@@ -10,6 +10,7 @@
- #include <linux/platform_device.h>
- #include <linux/bcma/bcma.h>
- #include <linux/slab.h>
-+#include <linux/of_irq.h>
- #include <linux/of_address.h>
-
- MODULE_DESCRIPTION("Broadcom's specific AMBA driver");
-@@ -159,8 +160,10 @@ static void bcma_of_fill_device(struct p
- struct device_node *node;
-
- node = bcma_of_find_child_device(parent, core);
-- if (node)
-- core->dev.of_node = node;
-+ if (!node)
-+ return;
-+ core->dev.of_node = node;
-+ core->irq = irq_of_parse_and_map(node, 0);
- }
- #else
- static void bcma_of_fill_device(struct platform_device *parent,