mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
dt: Eliminate of_platform_{,un}register_driver
Final step to eliminate of_platform_bus_type. They're all just platform drivers now. v2: fix type in pasemi_nand.c (thanks to Stephen Rothwell) Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
793218dfea
commit
1c48a5c93d
27 changed files with 134 additions and 148 deletions
|
|
@ -181,8 +181,7 @@ static struct pccard_operations electra_cf_ops = {
|
|||
.set_mem_map = electra_cf_set_mem_map,
|
||||
};
|
||||
|
||||
static int __devinit electra_cf_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
static int __devinit electra_cf_probe(struct platform_device *ofdev)
|
||||
{
|
||||
struct device *device = &ofdev->dev;
|
||||
struct device_node *np = ofdev->dev.of_node;
|
||||
|
|
@ -356,7 +355,7 @@ static const struct of_device_id electra_cf_match[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(of, electra_cf_match);
|
||||
|
||||
static struct of_platform_driver electra_cf_driver = {
|
||||
static struct platform_driver electra_cf_driver = {
|
||||
.driver = {
|
||||
.name = (char *)driver_name,
|
||||
.owner = THIS_MODULE,
|
||||
|
|
@ -368,13 +367,13 @@ static struct of_platform_driver electra_cf_driver = {
|
|||
|
||||
static int __init electra_cf_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&electra_cf_driver);
|
||||
return platform_driver_register(&electra_cf_driver);
|
||||
}
|
||||
module_init(electra_cf_init);
|
||||
|
||||
static void __exit electra_cf_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&electra_cf_driver);
|
||||
platform_driver_unregister(&electra_cf_driver);
|
||||
}
|
||||
module_exit(electra_cf_exit);
|
||||
|
||||
|
|
|
|||
|
|
@ -1148,8 +1148,7 @@ static struct pccard_operations m8xx_services = {
|
|||
.set_mem_map = m8xx_set_mem_map,
|
||||
};
|
||||
|
||||
static int __init m8xx_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
static int __init m8xx_probe(struct platform_device *ofdev)
|
||||
{
|
||||
struct pcmcia_win *w;
|
||||
unsigned int i, m, hwirq;
|
||||
|
|
@ -1295,7 +1294,7 @@ static const struct of_device_id m8xx_pcmcia_match[] = {
|
|||
|
||||
MODULE_DEVICE_TABLE(of, m8xx_pcmcia_match);
|
||||
|
||||
static struct of_platform_driver m8xx_pcmcia_driver = {
|
||||
static struct platform_driver m8xx_pcmcia_driver = {
|
||||
.driver = {
|
||||
.name = driver_name,
|
||||
.owner = THIS_MODULE,
|
||||
|
|
@ -1307,12 +1306,12 @@ static struct of_platform_driver m8xx_pcmcia_driver = {
|
|||
|
||||
static int __init m8xx_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&m8xx_pcmcia_driver);
|
||||
return platform_driver_register(&m8xx_pcmcia_driver);
|
||||
}
|
||||
|
||||
static void __exit m8xx_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&m8xx_pcmcia_driver);
|
||||
platform_driver_unregister(&m8xx_pcmcia_driver);
|
||||
}
|
||||
|
||||
module_init(m8xx_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue