aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_fsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r--drivers/ata/sata_fsl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c
index 7f9eab34a386..ef3ce26bb1f0 100644
--- a/drivers/ata/sata_fsl.c
+++ b/drivers/ata/sata_fsl.c
@@ -1300,8 +1300,7 @@ static const struct ata_port_info sata_fsl_port_info[] = {
1300 }, 1300 },
1301}; 1301};
1302 1302
1303static int sata_fsl_probe(struct platform_device *ofdev, 1303static int sata_fsl_probe(struct platform_device *ofdev)
1304 const struct of_device_id *match)
1305{ 1304{
1306 int retval = -ENXIO; 1305 int retval = -ENXIO;
1307 void __iomem *hcr_base = NULL; 1306 void __iomem *hcr_base = NULL;
@@ -1437,7 +1436,7 @@ static struct of_device_id fsl_sata_match[] = {
1437 1436
1438MODULE_DEVICE_TABLE(of, fsl_sata_match); 1437MODULE_DEVICE_TABLE(of, fsl_sata_match);
1439 1438
1440static struct of_platform_driver fsl_sata_driver = { 1439static struct platform_driver fsl_sata_driver = {
1441 .driver = { 1440 .driver = {
1442 .name = "fsl-sata", 1441 .name = "fsl-sata",
1443 .owner = THIS_MODULE, 1442 .owner = THIS_MODULE,
@@ -1453,13 +1452,13 @@ static struct of_platform_driver fsl_sata_driver = {
1453 1452
1454static int __init sata_fsl_init(void) 1453static int __init sata_fsl_init(void)
1455{ 1454{
1456 of_register_platform_driver(&fsl_sata_driver); 1455 platform_driver_register(&fsl_sata_driver);
1457 return 0; 1456 return 0;
1458} 1457}
1459 1458
1460static void __exit sata_fsl_exit(void) 1459static void __exit sata_fsl_exit(void)
1461{ 1460{
1462 of_unregister_platform_driver(&fsl_sata_driver); 1461 platform_driver_unregister(&fsl_sata_driver);
1463} 1462}
1464 1463
1465MODULE_LICENSE("GPL"); 1464MODULE_LICENSE("GPL");