dt/sparc: Eliminate users of of_platform_{,un}register_driver
Get rid of old users of of_platform_driver in arch/sparc. Most of_platform_driver users can be converted to use the platform_bus directly. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -503,8 +503,7 @@ static struct pci_pbm_info * __devinit psycho_find_sibling(u32 upa_portid)
|
||||
|
||||
#define PSYCHO_CONFIGSPACE 0x001000000UL
|
||||
|
||||
static int __devinit psycho_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
static int __devinit psycho_probe(struct platform_device *op)
|
||||
{
|
||||
const struct linux_prom64_registers *pr_regs;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
@@ -601,7 +600,7 @@ static struct of_device_id __initdata psycho_match[] = {
|
||||
{},
|
||||
};
|
||||
|
||||
static struct of_platform_driver psycho_driver = {
|
||||
static struct platform_driver psycho_driver = {
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
@@ -612,7 +611,7 @@ static struct of_platform_driver psycho_driver = {
|
||||
|
||||
static int __init psycho_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&psycho_driver);
|
||||
return platform_driver_register(&psycho_driver);
|
||||
}
|
||||
|
||||
subsys_initcall(psycho_init);
|
||||
|
Reference in New Issue
Block a user