mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
* 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6: (63 commits) of/platform: Register of_platform_drivers with an "of:" prefix of/address: Clean up function declarations of/spi: call of_register_spi_devices() from spi core code of: Provide default of_node_to_nid() implementation. of/device: Make of_device_make_bus_id() usable by other code. of/irq: Fix endian issues in parsing interrupt specifiers of: Fix phandle endian issues of/flattree: fix of_flat_dt_is_compatible() to match the full compatible string of: remove of_default_bus_ids of: make of_find_device_by_node generic microblaze: remove references to of_device and to_of_device sparc: remove references to of_device and to_of_device powerpc: remove references to of_device and to_of_device of/device: Replace of_device with platform_device in includes and core code of/device: Protect against binding of_platform_drivers to non-OF devices of: remove asm/of_device.h of: remove asm/of_platform.h of/platform: remove all of_bus_type and of_platform_bus_type references of: Merge of_platform_bus_type with platform_bus_type drivercore/of: Add OF style matching to platform bus ... Fix up trivial conflicts in arch/microblaze/kernel/Makefile due to just some obj-y removals by the devicetree branch, while the microblaze updates added a new file.
This commit is contained in:
commit
03c0c29aff
190 changed files with 2492 additions and 3864 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include <linux/mii.h>
|
||||
#include <linux/phy.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/of_mdio.h>
|
||||
#include <linux/of_platform.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -2339,11 +2339,11 @@ static int __devinit emac_wait_deps(struct emac_instance *dev)
|
|||
deps[EMAC_DEP_MDIO_IDX].phandle = dev->mdio_ph;
|
||||
if (dev->blist && dev->blist > emac_boot_list)
|
||||
deps[EMAC_DEP_PREV_IDX].phandle = 0xffffffffu;
|
||||
bus_register_notifier(&of_platform_bus_type, &emac_of_bus_notifier);
|
||||
bus_register_notifier(&platform_bus_type, &emac_of_bus_notifier);
|
||||
wait_event_timeout(emac_probe_wait,
|
||||
emac_check_deps(dev, deps),
|
||||
EMAC_PROBE_DEP_TIMEOUT);
|
||||
bus_unregister_notifier(&of_platform_bus_type, &emac_of_bus_notifier);
|
||||
bus_unregister_notifier(&platform_bus_type, &emac_of_bus_notifier);
|
||||
err = emac_check_deps(dev, deps) ? 0 : -ENODEV;
|
||||
for (i = 0; i < EMAC_DEP_COUNT; i++) {
|
||||
if (deps[i].node)
|
||||
|
|
|
|||
|
|
@ -1079,7 +1079,7 @@ static int __devinit myri_sbus_probe(struct of_device *op, const struct of_devic
|
|||
|
||||
mp->dev = dev;
|
||||
dev->watchdog_timeo = 5*HZ;
|
||||
dev->irq = op->irqs[0];
|
||||
dev->irq = op->archdata.irqs[0];
|
||||
dev->netdev_ops = &myri_ops;
|
||||
|
||||
/* Register interrupt handler now. */
|
||||
|
|
@ -1172,12 +1172,12 @@ static struct of_platform_driver myri_sbus_driver = {
|
|||
|
||||
static int __init myri_sbus_init(void)
|
||||
{
|
||||
return of_register_driver(&myri_sbus_driver, &of_bus_type);
|
||||
return of_register_platform_driver(&myri_sbus_driver);
|
||||
}
|
||||
|
||||
static void __exit myri_sbus_exit(void)
|
||||
{
|
||||
of_unregister_driver(&myri_sbus_driver);
|
||||
of_unregister_platform_driver(&myri_sbus_driver);
|
||||
}
|
||||
|
||||
module_init(myri_sbus_init);
|
||||
|
|
|
|||
|
|
@ -28,10 +28,7 @@
|
|||
#include <linux/slab.h>
|
||||
|
||||
#include <linux/io.h>
|
||||
|
||||
#ifdef CONFIG_SPARC64
|
||||
#include <linux/of_device.h>
|
||||
#endif
|
||||
|
||||
#include "niu.h"
|
||||
|
||||
|
|
@ -9114,12 +9111,12 @@ static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map)
|
|||
if (!int_prop)
|
||||
return -ENODEV;
|
||||
|
||||
for (i = 0; i < op->num_irqs; i++) {
|
||||
for (i = 0; i < op->archdata.num_irqs; i++) {
|
||||
ldg_num_map[i] = int_prop[i];
|
||||
np->ldg[i].irq = op->irqs[i];
|
||||
np->ldg[i].irq = op->archdata.irqs[i];
|
||||
}
|
||||
|
||||
np->num_ldg = op->num_irqs;
|
||||
np->num_ldg = op->archdata.num_irqs;
|
||||
|
||||
return 0;
|
||||
#else
|
||||
|
|
@ -10249,14 +10246,14 @@ static int __init niu_init(void)
|
|||
niu_debug = netif_msg_init(debug, NIU_MSG_DEFAULT);
|
||||
|
||||
#ifdef CONFIG_SPARC64
|
||||
err = of_register_driver(&niu_of_driver, &of_bus_type);
|
||||
err = of_register_platform_driver(&niu_of_driver);
|
||||
#endif
|
||||
|
||||
if (!err) {
|
||||
err = pci_register_driver(&niu_pci_driver);
|
||||
#ifdef CONFIG_SPARC64
|
||||
if (err)
|
||||
of_unregister_driver(&niu_of_driver);
|
||||
of_unregister_platform_driver(&niu_of_driver);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -10267,7 +10264,7 @@ static void __exit niu_exit(void)
|
|||
{
|
||||
pci_unregister_driver(&niu_pci_driver);
|
||||
#ifdef CONFIG_SPARC64
|
||||
of_unregister_driver(&niu_of_driver);
|
||||
of_unregister_platform_driver(&niu_of_driver);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3236,7 +3236,7 @@ struct niu_phy_ops {
|
|||
int (*link_status)(struct niu *np, int *);
|
||||
};
|
||||
|
||||
struct of_device;
|
||||
struct platform_device;
|
||||
struct niu {
|
||||
void __iomem *regs;
|
||||
struct net_device *dev;
|
||||
|
|
@ -3297,7 +3297,7 @@ struct niu {
|
|||
struct niu_vpd vpd;
|
||||
u32 eeprom_len;
|
||||
|
||||
struct of_device *op;
|
||||
struct platform_device *op;
|
||||
void __iomem *vir_regs_1;
|
||||
void __iomem *vir_regs_2;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1201,7 +1201,7 @@ static int __devinit bigmac_ether_init(struct of_device *op,
|
|||
dev->watchdog_timeo = 5*HZ;
|
||||
|
||||
/* Finish net device registration. */
|
||||
dev->irq = bp->bigmac_op->irqs[0];
|
||||
dev->irq = bp->bigmac_op->archdata.irqs[0];
|
||||
dev->dma = 0;
|
||||
|
||||
if (register_netdev(dev)) {
|
||||
|
|
@ -1301,12 +1301,12 @@ static struct of_platform_driver bigmac_sbus_driver = {
|
|||
|
||||
static int __init bigmac_init(void)
|
||||
{
|
||||
return of_register_driver(&bigmac_sbus_driver, &of_bus_type);
|
||||
return of_register_platform_driver(&bigmac_sbus_driver);
|
||||
}
|
||||
|
||||
static void __exit bigmac_exit(void)
|
||||
{
|
||||
of_unregister_driver(&bigmac_sbus_driver);
|
||||
of_unregister_platform_driver(&bigmac_sbus_driver);
|
||||
}
|
||||
|
||||
module_init(bigmac_init);
|
||||
|
|
|
|||
|
|
@ -2561,7 +2561,7 @@ static int __init quattro_sbus_register_irqs(void)
|
|||
if (skip)
|
||||
continue;
|
||||
|
||||
err = request_irq(op->irqs[0],
|
||||
err = request_irq(op->archdata.irqs[0],
|
||||
quattro_sbus_interrupt,
|
||||
IRQF_SHARED, "Quattro",
|
||||
qp);
|
||||
|
|
@ -2590,7 +2590,7 @@ static void quattro_sbus_free_irqs(void)
|
|||
if (skip)
|
||||
continue;
|
||||
|
||||
free_irq(op->irqs[0], qp);
|
||||
free_irq(op->archdata.irqs[0], qp);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_SBUS */
|
||||
|
|
@ -2790,7 +2790,7 @@ static int __devinit happy_meal_sbus_probe_one(struct of_device *op, int is_qfe)
|
|||
/* Happy Meal can do it all... */
|
||||
dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM;
|
||||
|
||||
dev->irq = op->irqs[0];
|
||||
dev->irq = op->archdata.irqs[0];
|
||||
|
||||
#if defined(CONFIG_SBUS) && defined(CONFIG_PCI)
|
||||
/* Hook up SBUS register/descriptor accessors. */
|
||||
|
|
@ -3304,7 +3304,7 @@ static int __init happy_meal_sbus_init(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
err = of_register_driver(&hme_sbus_driver, &of_bus_type);
|
||||
err = of_register_platform_driver(&hme_sbus_driver);
|
||||
if (!err)
|
||||
err = quattro_sbus_register_irqs();
|
||||
|
||||
|
|
@ -3313,7 +3313,7 @@ static int __init happy_meal_sbus_init(void)
|
|||
|
||||
static void happy_meal_sbus_exit(void)
|
||||
{
|
||||
of_unregister_driver(&hme_sbus_driver);
|
||||
of_unregister_platform_driver(&hme_sbus_driver);
|
||||
quattro_sbus_free_irqs();
|
||||
|
||||
while (qfe_sbus_list) {
|
||||
|
|
|
|||
|
|
@ -1474,7 +1474,7 @@ no_link_test:
|
|||
dev->ethtool_ops = &sparc_lance_ethtool_ops;
|
||||
dev->netdev_ops = &sparc_lance_ops;
|
||||
|
||||
dev->irq = op->irqs[0];
|
||||
dev->irq = op->archdata.irqs[0];
|
||||
|
||||
/* We cannot sleep if the chip is busy during a
|
||||
* multicast list update event, because such events
|
||||
|
|
@ -1558,12 +1558,12 @@ static struct of_platform_driver sunlance_sbus_driver = {
|
|||
/* Find all the lance cards on the system and initialize them */
|
||||
static int __init sparc_lance_init(void)
|
||||
{
|
||||
return of_register_driver(&sunlance_sbus_driver, &of_bus_type);
|
||||
return of_register_platform_driver(&sunlance_sbus_driver);
|
||||
}
|
||||
|
||||
static void __exit sparc_lance_exit(void)
|
||||
{
|
||||
of_unregister_driver(&sunlance_sbus_driver);
|
||||
of_unregister_platform_driver(&sunlance_sbus_driver);
|
||||
}
|
||||
|
||||
module_init(sparc_lance_init);
|
||||
|
|
|
|||
|
|
@ -803,7 +803,7 @@ static struct sunqec * __devinit get_qec(struct of_device *child)
|
|||
|
||||
qec_init_once(qecp, op);
|
||||
|
||||
if (request_irq(op->irqs[0], qec_interrupt,
|
||||
if (request_irq(op->archdata.irqs[0], qec_interrupt,
|
||||
IRQF_SHARED, "qec", (void *) qecp)) {
|
||||
printk(KERN_ERR "qec: Can't register irq.\n");
|
||||
goto fail;
|
||||
|
|
@ -901,7 +901,7 @@ static int __devinit qec_ether_init(struct of_device *op)
|
|||
SET_NETDEV_DEV(dev, &op->dev);
|
||||
|
||||
dev->watchdog_timeo = 5*HZ;
|
||||
dev->irq = op->irqs[0];
|
||||
dev->irq = op->archdata.irqs[0];
|
||||
dev->dma = 0;
|
||||
dev->ethtool_ops = &qe_ethtool_ops;
|
||||
dev->netdev_ops = &qec_ops;
|
||||
|
|
@ -988,18 +988,18 @@ static struct of_platform_driver qec_sbus_driver = {
|
|||
|
||||
static int __init qec_init(void)
|
||||
{
|
||||
return of_register_driver(&qec_sbus_driver, &of_bus_type);
|
||||
return of_register_platform_driver(&qec_sbus_driver);
|
||||
}
|
||||
|
||||
static void __exit qec_exit(void)
|
||||
{
|
||||
of_unregister_driver(&qec_sbus_driver);
|
||||
of_unregister_platform_driver(&qec_sbus_driver);
|
||||
|
||||
while (root_qec_dev) {
|
||||
struct sunqec *next = root_qec_dev->next_module;
|
||||
struct of_device *op = root_qec_dev->op;
|
||||
|
||||
free_irq(op->irqs[0], (void *) root_qec_dev);
|
||||
free_irq(op->archdata.irqs[0], (void *) root_qec_dev);
|
||||
of_iounmap(&op->resource[0], root_qec_dev->gregs,
|
||||
GLOB_REG_SIZE);
|
||||
kfree(root_qec_dev);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#include <linux/skbuff.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/of_mdio.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue