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 <grant.likely@secretlab.ca>
This commit is contained in:
@@ -1293,8 +1293,7 @@ static const struct ata_port_info sata_fsl_port_info[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static int sata_fsl_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
static int sata_fsl_probe(struct platform_device *ofdev)
|
||||
{
|
||||
int retval = -ENXIO;
|
||||
void __iomem *hcr_base = NULL;
|
||||
@@ -1423,7 +1422,7 @@ static struct of_device_id fsl_sata_match[] = {
|
||||
|
||||
MODULE_DEVICE_TABLE(of, fsl_sata_match);
|
||||
|
||||
static struct of_platform_driver fsl_sata_driver = {
|
||||
static struct platform_driver fsl_sata_driver = {
|
||||
.driver = {
|
||||
.name = "fsl-sata",
|
||||
.owner = THIS_MODULE,
|
||||
@@ -1439,13 +1438,13 @@ static struct of_platform_driver fsl_sata_driver = {
|
||||
|
||||
static int __init sata_fsl_init(void)
|
||||
{
|
||||
of_register_platform_driver(&fsl_sata_driver);
|
||||
platform_driver_register(&fsl_sata_driver);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit sata_fsl_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&fsl_sata_driver);
|
||||
platform_driver_unregister(&fsl_sata_driver);
|
||||
}
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Reference in New Issue
Block a user