aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_dwc_460ex.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_dwc_460ex.c')
-rw-r--r--drivers/ata/sata_dwc_460ex.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c
index 6cf57c5c2b5f..685a3a4b4d82 100644
--- a/drivers/ata/sata_dwc_460ex.c
+++ b/drivers/ata/sata_dwc_460ex.c
@@ -1588,8 +1588,7 @@ static const struct ata_port_info sata_dwc_port_info[] = {
1588 }, 1588 },
1589}; 1589};
1590 1590
1591static int sata_dwc_probe(struct platform_device *ofdev, 1591static int sata_dwc_probe(struct platform_device *ofdev)
1592 const struct of_device_id *match)
1593{ 1592{
1594 struct sata_dwc_device *hsdev; 1593 struct sata_dwc_device *hsdev;
1595 u32 idr, versionr; 1594 u32 idr, versionr;
@@ -1727,7 +1726,7 @@ static const struct of_device_id sata_dwc_match[] = {
1727}; 1726};
1728MODULE_DEVICE_TABLE(of, sata_dwc_match); 1727MODULE_DEVICE_TABLE(of, sata_dwc_match);
1729 1728
1730static struct of_platform_driver sata_dwc_driver = { 1729static struct platform_driver sata_dwc_driver = {
1731 .driver = { 1730 .driver = {
1732 .name = DRV_NAME, 1731 .name = DRV_NAME,
1733 .owner = THIS_MODULE, 1732 .owner = THIS_MODULE,
@@ -1739,12 +1738,12 @@ static struct of_platform_driver sata_dwc_driver = {
1739 1738
1740static int __init sata_dwc_init(void) 1739static int __init sata_dwc_init(void)
1741{ 1740{
1742 return of_register_platform_driver(&sata_dwc_driver); 1741 return platform_driver_register(&sata_dwc_driver);
1743} 1742}
1744 1743
1745static void __exit sata_dwc_exit(void) 1744static void __exit sata_dwc_exit(void)
1746{ 1745{
1747 of_unregister_platform_driver(&sata_dwc_driver); 1746 platform_driver_unregister(&sata_dwc_driver);
1748} 1747}
1749 1748
1750module_init(sata_dwc_init); 1749module_init(sata_dwc_init);