diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 02:52:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 02:52:17 -0500 |
commit | 10d0c9705e80bbd3d587c5fad24599aabaca6688 (patch) | |
tree | 9456083a1b04b8d98da08d88e937cfeff80e2a7d /drivers/net | |
parent | 85b656cf1560e27a89354a23f2c10ba229d2f173 (diff) | |
parent | c11eede69b6ad0ac44ebc1e021a8d2699c5f1f8f (diff) |
Merge tag 'devicetree-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull devicetree updates from Rob Herring:
"DeviceTree updates for 3.13. This is a bit larger pull request than
usual for this cycle with lots of clean-up.
- Cross arch clean-up and consolidation of early DT scanning code.
- Clean-up and removal of arch prom.h headers. Makes arch specific
prom.h optional on all but Sparc.
- Addition of interrupts-extended property for devices connected to
multiple interrupt controllers.
- Refactoring of DT interrupt parsing code in preparation for
deferred probe of interrupts.
- ARM cpu and cpu topology bindings documentation.
- Various DT vendor binding documentation updates"
* tag 'devicetree-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (82 commits)
powerpc: add missing explicit OF includes for ppc
dt/irq: add empty of_irq_count for !OF_IRQ
dt: disable self-tests for !OF_IRQ
of: irq: Fix interrupt-map entry matching
MIPS: Netlogic: replace early_init_devtree() call
of: Add Panasonic Corporation vendor prefix
of: Add Chunghwa Picture Tubes Ltd. vendor prefix
of: Add AU Optronics Corporation vendor prefix
of/irq: Fix potential buffer overflow
of/irq: Fix bug in interrupt parsing refactor.
of: set dma_mask to point to coherent_dma_mask
of: add vendor prefix for PHYTEC Messtechnik GmbH
DT: sort vendor-prefixes.txt
of: Add vendor prefix for Cadence
of: Add empty for_each_available_child_of_node() macro definition
arm/versatile: Fix versatile irq specifications.
of/irq: create interrupts-extended property
microblaze/pci: Drop PowerPC-ism from irq parsing
of/irq: Create of_irq_parse_and_map_pci() to consolidate arch code.
of/irq: Use irq_of_parse_and_map()
...
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/can/grcan.c | 3 | ||||
-rw-r--r-- | drivers/net/can/sja1000/sja1000_of_platform.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/arc/emac_main.c | 10 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/mac-fcc.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/mac-fec.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/mac-scc.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/fs_enet/mii-fec.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/gianfar.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/ucc_geth.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/xgmac_mdio.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/mal.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/rgmii.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/tah.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/zmii.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 1 |
17 files changed, 28 insertions, 12 deletions
diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c index 6aa737a24393..ab506d6cab37 100644 --- a/drivers/net/can/grcan.c +++ b/drivers/net/can/grcan.c | |||
@@ -34,10 +34,7 @@ | |||
34 | #include <linux/io.h> | 34 | #include <linux/io.h> |
35 | #include <linux/can/dev.h> | 35 | #include <linux/can/dev.h> |
36 | #include <linux/spinlock.h> | 36 | #include <linux/spinlock.h> |
37 | |||
38 | #include <linux/of_platform.h> | 37 | #include <linux/of_platform.h> |
39 | #include <asm/prom.h> | ||
40 | |||
41 | #include <linux/of_irq.h> | 38 | #include <linux/of_irq.h> |
42 | 39 | ||
43 | #include <linux/dma-mapping.h> | 40 | #include <linux/dma-mapping.h> |
diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c index 31ad33911167..047accd4ede5 100644 --- a/drivers/net/can/sja1000/sja1000_of_platform.c +++ b/drivers/net/can/sja1000/sja1000_of_platform.c | |||
@@ -44,7 +44,6 @@ | |||
44 | #include <linux/of_platform.h> | 44 | #include <linux/of_platform.h> |
45 | #include <linux/of_address.h> | 45 | #include <linux/of_address.h> |
46 | #include <linux/of_irq.h> | 46 | #include <linux/of_irq.h> |
47 | #include <asm/prom.h> | ||
48 | 47 | ||
49 | #include "sja1000.h" | 48 | #include "sja1000.h" |
50 | 49 | ||
diff --git a/drivers/net/ethernet/arc/emac_main.c b/drivers/net/ethernet/arc/emac_main.c index 9e1601487263..d0878526c0c8 100644 --- a/drivers/net/ethernet/arc/emac_main.c +++ b/drivers/net/ethernet/arc/emac_main.c | |||
@@ -628,12 +628,12 @@ static const struct net_device_ops arc_emac_netdev_ops = { | |||
628 | 628 | ||
629 | static int arc_emac_probe(struct platform_device *pdev) | 629 | static int arc_emac_probe(struct platform_device *pdev) |
630 | { | 630 | { |
631 | struct resource res_regs, res_irq; | 631 | struct resource res_regs; |
632 | struct device_node *phy_node; | 632 | struct device_node *phy_node; |
633 | struct arc_emac_priv *priv; | 633 | struct arc_emac_priv *priv; |
634 | struct net_device *ndev; | 634 | struct net_device *ndev; |
635 | const char *mac_addr; | 635 | const char *mac_addr; |
636 | unsigned int id, clock_frequency; | 636 | unsigned int id, clock_frequency, irq; |
637 | int err; | 637 | int err; |
638 | 638 | ||
639 | if (!pdev->dev.of_node) | 639 | if (!pdev->dev.of_node) |
@@ -661,8 +661,8 @@ static int arc_emac_probe(struct platform_device *pdev) | |||
661 | } | 661 | } |
662 | 662 | ||
663 | /* Get IRQ from device tree */ | 663 | /* Get IRQ from device tree */ |
664 | err = of_irq_to_resource(pdev->dev.of_node, 0, &res_irq); | 664 | irq = irq_of_parse_and_map(pdev->dev.of_node, 0); |
665 | if (!err) { | 665 | if (!irq) { |
666 | dev_err(&pdev->dev, "failed to retrieve <irq> value from device tree\n"); | 666 | dev_err(&pdev->dev, "failed to retrieve <irq> value from device tree\n"); |
667 | return -ENODEV; | 667 | return -ENODEV; |
668 | } | 668 | } |
@@ -711,7 +711,7 @@ static int arc_emac_probe(struct platform_device *pdev) | |||
711 | goto out; | 711 | goto out; |
712 | } | 712 | } |
713 | 713 | ||
714 | ndev->irq = res_irq.start; | 714 | ndev->irq = irq; |
715 | dev_info(&pdev->dev, "IRQ is %d\n", ndev->irq); | 715 | dev_info(&pdev->dev, "IRQ is %d\n", ndev->irq); |
716 | 716 | ||
717 | /* Register interrupt handler for device */ | 717 | /* Register interrupt handler for device */ |
diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c b/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c index 7583a9572bcc..f8b92864fc52 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c +++ b/drivers/net/ethernet/freescale/fs_enet/mac-fcc.c | |||
@@ -32,7 +32,9 @@ | |||
32 | #include <linux/fs.h> | 32 | #include <linux/fs.h> |
33 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
34 | #include <linux/phy.h> | 34 | #include <linux/phy.h> |
35 | #include <linux/of_address.h> | ||
35 | #include <linux/of_device.h> | 36 | #include <linux/of_device.h> |
37 | #include <linux/of_irq.h> | ||
36 | #include <linux/gfp.h> | 38 | #include <linux/gfp.h> |
37 | 39 | ||
38 | #include <asm/immap_cpm2.h> | 40 | #include <asm/immap_cpm2.h> |
@@ -88,7 +90,7 @@ static int do_pd_setup(struct fs_enet_private *fep) | |||
88 | struct fs_platform_info *fpi = fep->fpi; | 90 | struct fs_platform_info *fpi = fep->fpi; |
89 | int ret = -EINVAL; | 91 | int ret = -EINVAL; |
90 | 92 | ||
91 | fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL); | 93 | fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); |
92 | if (fep->interrupt == NO_IRQ) | 94 | if (fep->interrupt == NO_IRQ) |
93 | goto out; | 95 | goto out; |
94 | 96 | ||
diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c b/drivers/net/ethernet/freescale/fs_enet/mac-fec.c index 9ae6cdbcac2e..a9a00f39521a 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mac-fec.c +++ b/drivers/net/ethernet/freescale/fs_enet/mac-fec.c | |||
@@ -31,7 +31,9 @@ | |||
31 | #include <linux/bitops.h> | 31 | #include <linux/bitops.h> |
32 | #include <linux/fs.h> | 32 | #include <linux/fs.h> |
33 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
34 | #include <linux/of_address.h> | ||
34 | #include <linux/of_device.h> | 35 | #include <linux/of_device.h> |
36 | #include <linux/of_irq.h> | ||
35 | #include <linux/gfp.h> | 37 | #include <linux/gfp.h> |
36 | 38 | ||
37 | #include <asm/irq.h> | 39 | #include <asm/irq.h> |
@@ -98,7 +100,7 @@ static int do_pd_setup(struct fs_enet_private *fep) | |||
98 | { | 100 | { |
99 | struct platform_device *ofdev = to_platform_device(fep->dev); | 101 | struct platform_device *ofdev = to_platform_device(fep->dev); |
100 | 102 | ||
101 | fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL); | 103 | fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); |
102 | if (fep->interrupt == NO_IRQ) | 104 | if (fep->interrupt == NO_IRQ) |
103 | return -EINVAL; | 105 | return -EINVAL; |
104 | 106 | ||
diff --git a/drivers/net/ethernet/freescale/fs_enet/mac-scc.c b/drivers/net/ethernet/freescale/fs_enet/mac-scc.c index 22a02a767069..d37cd4ebac65 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mac-scc.c +++ b/drivers/net/ethernet/freescale/fs_enet/mac-scc.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/bitops.h> | 31 | #include <linux/bitops.h> |
32 | #include <linux/fs.h> | 32 | #include <linux/fs.h> |
33 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
34 | #include <linux/of_address.h> | ||
35 | #include <linux/of_irq.h> | ||
34 | #include <linux/of_platform.h> | 36 | #include <linux/of_platform.h> |
35 | 37 | ||
36 | #include <asm/irq.h> | 38 | #include <asm/irq.h> |
@@ -98,7 +100,7 @@ static int do_pd_setup(struct fs_enet_private *fep) | |||
98 | { | 100 | { |
99 | struct platform_device *ofdev = to_platform_device(fep->dev); | 101 | struct platform_device *ofdev = to_platform_device(fep->dev); |
100 | 102 | ||
101 | fep->interrupt = of_irq_to_resource(ofdev->dev.of_node, 0, NULL); | 103 | fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); |
102 | if (fep->interrupt == NO_IRQ) | 104 | if (fep->interrupt == NO_IRQ) |
103 | return -EINVAL; | 105 | return -EINVAL; |
104 | 106 | ||
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c b/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c index 844ecfa84d17..67caaacd19ec 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c +++ b/drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/mii.h> | 22 | #include <linux/mii.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/mdio-bitbang.h> | 24 | #include <linux/mdio-bitbang.h> |
25 | #include <linux/of_address.h> | ||
25 | #include <linux/of_mdio.h> | 26 | #include <linux/of_mdio.h> |
26 | #include <linux/of_platform.h> | 27 | #include <linux/of_platform.h> |
27 | 28 | ||
diff --git a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c index 2f1c46a12f05..ac5d447ff8c4 100644 --- a/drivers/net/ethernet/freescale/fs_enet/mii-fec.c +++ b/drivers/net/ethernet/freescale/fs_enet/mii-fec.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/ethtool.h> | 31 | #include <linux/ethtool.h> |
32 | #include <linux/bitops.h> | 32 | #include <linux/bitops.h> |
33 | #include <linux/platform_device.h> | 33 | #include <linux/platform_device.h> |
34 | #include <linux/of_address.h> | ||
34 | #include <linux/of_platform.h> | 35 | #include <linux/of_platform.h> |
35 | 36 | ||
36 | #include <asm/pgtable.h> | 37 | #include <asm/pgtable.h> |
diff --git a/drivers/net/ethernet/freescale/gianfar.c b/drivers/net/ethernet/freescale/gianfar.c index 9fbe4dda7a0e..ef95c3ae53e6 100644 --- a/drivers/net/ethernet/freescale/gianfar.c +++ b/drivers/net/ethernet/freescale/gianfar.c | |||
@@ -78,6 +78,8 @@ | |||
78 | #include <linux/if_vlan.h> | 78 | #include <linux/if_vlan.h> |
79 | #include <linux/spinlock.h> | 79 | #include <linux/spinlock.h> |
80 | #include <linux/mm.h> | 80 | #include <linux/mm.h> |
81 | #include <linux/of_address.h> | ||
82 | #include <linux/of_irq.h> | ||
81 | #include <linux/of_mdio.h> | 83 | #include <linux/of_mdio.h> |
82 | #include <linux/of_platform.h> | 84 | #include <linux/of_platform.h> |
83 | #include <linux/ip.h> | 85 | #include <linux/ip.h> |
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 5930c39672db..64b329fecf3d 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/mii.h> | 31 | #include <linux/mii.h> |
32 | #include <linux/phy.h> | 32 | #include <linux/phy.h> |
33 | #include <linux/workqueue.h> | 33 | #include <linux/workqueue.h> |
34 | #include <linux/of_address.h> | ||
35 | #include <linux/of_irq.h> | ||
34 | #include <linux/of_mdio.h> | 36 | #include <linux/of_mdio.h> |
35 | #include <linux/of_net.h> | 37 | #include <linux/of_net.h> |
36 | #include <linux/of_platform.h> | 38 | #include <linux/of_platform.h> |
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index c1b6e7e31aac..d449fcb90199 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/phy.h> | 18 | #include <linux/phy.h> |
19 | #include <linux/mdio.h> | 19 | #include <linux/mdio.h> |
20 | #include <linux/of_address.h> | ||
20 | #include <linux/of_platform.h> | 21 | #include <linux/of_platform.h> |
21 | #include <linux/of_mdio.h> | 22 | #include <linux/of_mdio.h> |
22 | 23 | ||
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 6b5c7222342c..cdf2321f1f0f 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c | |||
@@ -39,6 +39,8 @@ | |||
39 | #include <linux/bitops.h> | 39 | #include <linux/bitops.h> |
40 | #include <linux/workqueue.h> | 40 | #include <linux/workqueue.h> |
41 | #include <linux/of.h> | 41 | #include <linux/of.h> |
42 | #include <linux/of_address.h> | ||
43 | #include <linux/of_irq.h> | ||
42 | #include <linux/of_net.h> | 44 | #include <linux/of_net.h> |
43 | #include <linux/slab.h> | 45 | #include <linux/slab.h> |
44 | 46 | ||
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c index e7847510eda2..9d75fef6396f 100644 --- a/drivers/net/ethernet/ibm/emac/mal.c +++ b/drivers/net/ethernet/ibm/emac/mal.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <linux/delay.h> | 28 | #include <linux/delay.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/of_irq.h> | ||
30 | 31 | ||
31 | #include "core.h" | 32 | #include "core.h" |
32 | #include <asm/dcr-regs.h> | 33 | #include <asm/dcr-regs.h> |
diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c index c47e23d6eeaa..4fb2f96da23b 100644 --- a/drivers/net/ethernet/ibm/emac/rgmii.c +++ b/drivers/net/ethernet/ibm/emac/rgmii.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
26 | #include <linux/ethtool.h> | 26 | #include <linux/ethtool.h> |
27 | #include <linux/of_address.h> | ||
27 | #include <asm/io.h> | 28 | #include <asm/io.h> |
28 | 29 | ||
29 | #include "emac.h" | 30 | #include "emac.h" |
diff --git a/drivers/net/ethernet/ibm/emac/tah.c b/drivers/net/ethernet/ibm/emac/tah.c index c231a4a32c4d..9f24769ed826 100644 --- a/drivers/net/ethernet/ibm/emac/tah.c +++ b/drivers/net/ethernet/ibm/emac/tah.c | |||
@@ -18,6 +18,7 @@ | |||
18 | * Free Software Foundation; either version 2 of the License, or (at your | 18 | * Free Software Foundation; either version 2 of the License, or (at your |
19 | * option) any later version. | 19 | * option) any later version. |
20 | */ | 20 | */ |
21 | #include <linux/of_address.h> | ||
21 | #include <asm/io.h> | 22 | #include <asm/io.h> |
22 | 23 | ||
23 | #include "emac.h" | 24 | #include "emac.h" |
diff --git a/drivers/net/ethernet/ibm/emac/zmii.c b/drivers/net/ethernet/ibm/emac/zmii.c index 4cdf286f7ee3..9ca67a38c062 100644 --- a/drivers/net/ethernet/ibm/emac/zmii.c +++ b/drivers/net/ethernet/ibm/emac/zmii.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
26 | #include <linux/ethtool.h> | 26 | #include <linux/ethtool.h> |
27 | #include <linux/of_address.h> | ||
27 | #include <asm/io.h> | 28 | #include <asm/io.h> |
28 | 29 | ||
29 | #include "emac.h" | 30 | #include "emac.h" |
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index 0029148077a9..1f2364126323 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <linux/netdevice.h> | 36 | #include <linux/netdevice.h> |
37 | #include <linux/of.h> | 37 | #include <linux/of.h> |
38 | #include <linux/of_device.h> | 38 | #include <linux/of_device.h> |
39 | #include <linux/of_irq.h> | ||
39 | #include <linux/of_mdio.h> | 40 | #include <linux/of_mdio.h> |
40 | #include <linux/of_platform.h> | 41 | #include <linux/of_platform.h> |
41 | #include <linux/of_address.h> | 42 | #include <linux/of_address.h> |