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:
Linus Torvalds 2010-08-05 15:57:35 -07:00
commit 03c0c29aff
190 changed files with 2492 additions and 3864 deletions

View file

@ -390,12 +390,12 @@ static int __init bw2_init(void)
if (fb_get_options("bw2fb", NULL))
return -ENODEV;
return of_register_driver(&bw2_driver, &of_bus_type);
return of_register_platform_driver(&bw2_driver);
}
static void __exit bw2_exit(void)
{
of_unregister_driver(&bw2_driver);
of_unregister_platform_driver(&bw2_driver);
}
module_init(bw2_init);

View file

@ -610,12 +610,12 @@ static int __init cg14_init(void)
if (fb_get_options("cg14fb", NULL))
return -ENODEV;
return of_register_driver(&cg14_driver, &of_bus_type);
return of_register_platform_driver(&cg14_driver);
}
static void __exit cg14_exit(void)
{
of_unregister_driver(&cg14_driver);
of_unregister_platform_driver(&cg14_driver);
}
module_init(cg14_init);

View file

@ -477,12 +477,12 @@ static int __init cg3_init(void)
if (fb_get_options("cg3fb", NULL))
return -ENODEV;
return of_register_driver(&cg3_driver, &of_bus_type);
return of_register_platform_driver(&cg3_driver);
}
static void __exit cg3_exit(void)
{
of_unregister_driver(&cg3_driver);
of_unregister_platform_driver(&cg3_driver);
}
module_init(cg3_init);

View file

@ -870,12 +870,12 @@ static int __init cg6_init(void)
if (fb_get_options("cg6fb", NULL))
return -ENODEV;
return of_register_driver(&cg6_driver, &of_bus_type);
return of_register_platform_driver(&cg6_driver);
}
static void __exit cg6_exit(void)
{
of_unregister_driver(&cg6_driver);
of_unregister_platform_driver(&cg6_driver);
}
module_init(cg6_init);

View file

@ -40,6 +40,8 @@
#include <linux/vmalloc.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/pci.h>

View file

@ -1067,12 +1067,12 @@ static int __init ffb_init(void)
if (fb_get_options("ffb", NULL))
return -ENODEV;
return of_register_driver(&ffb_driver, &of_bus_type);
return of_register_platform_driver(&ffb_driver);
}
static void __exit ffb_exit(void)
{
of_unregister_driver(&ffb_driver);
of_unregister_platform_driver(&ffb_driver);
}
module_init(ffb_init);

View file

@ -677,12 +677,12 @@ static int __init leo_init(void)
if (fb_get_options("leofb", NULL))
return -ENODEV;
return of_register_driver(&leo_driver, &of_bus_type);
return of_register_platform_driver(&leo_driver);
}
static void __exit leo_exit(void)
{
of_unregister_driver(&leo_driver);
of_unregister_platform_driver(&leo_driver);
}
module_init(leo_init);

View file

@ -19,13 +19,14 @@
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/delay.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/interrupt.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <asm/io.h>
#include <asm/prom.h>
#ifdef CONFIG_PPC64
#include <asm/pci-bridge.h>

View file

@ -367,12 +367,12 @@ static int __init p9100_init(void)
if (fb_get_options("p9100fb", NULL))
return -ENODEV;
return of_register_driver(&p9100_driver, &of_bus_type);
return of_register_platform_driver(&p9100_driver);
}
static void __exit p9100_exit(void)
{
of_unregister_driver(&p9100_driver);
of_unregister_platform_driver(&p9100_driver);
}
module_init(p9100_init);

View file

@ -213,12 +213,12 @@ static int __init gfb_init(void)
if (fb_get_options("gfb", NULL))
return -ENODEV;
return of_register_driver(&gfb_driver, &of_bus_type);
return of_register_platform_driver(&gfb_driver);
}
static void __exit gfb_exit(void)
{
of_unregister_driver(&gfb_driver);
of_unregister_platform_driver(&gfb_driver);
}
module_init(gfb_init);

View file

@ -526,12 +526,12 @@ static int __init tcx_init(void)
if (fb_get_options("tcxfb", NULL))
return -ENODEV;
return of_register_driver(&tcx_driver, &of_bus_type);
return of_register_platform_driver(&tcx_driver);
}
static void __exit tcx_exit(void)
{
of_unregister_driver(&tcx_driver);
of_unregister_platform_driver(&tcx_driver);
}
module_init(tcx_init);