diff options
Diffstat (limited to 'drivers/ata/ahci_platform.c')
-rw-r--r-- | drivers/ata/ahci_platform.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index b7078afddb74..c598fd7cbf3f 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c | |||
@@ -75,7 +75,7 @@ static struct scsi_host_template ahci_platform_sht = { | |||
75 | AHCI_SHT("ahci_platform"), | 75 | AHCI_SHT("ahci_platform"), |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static int __init ahci_probe(struct platform_device *pdev) | 78 | static int __devinit ahci_probe(struct platform_device *pdev) |
79 | { | 79 | { |
80 | struct device *dev = &pdev->dev; | 80 | struct device *dev = &pdev->dev; |
81 | struct ahci_platform_data *pdata = dev_get_platdata(dev); | 81 | struct ahci_platform_data *pdata = dev_get_platdata(dev); |
@@ -326,6 +326,7 @@ static const struct of_device_id ahci_of_match[] = { | |||
326 | MODULE_DEVICE_TABLE(of, ahci_of_match); | 326 | MODULE_DEVICE_TABLE(of, ahci_of_match); |
327 | 327 | ||
328 | static struct platform_driver ahci_driver = { | 328 | static struct platform_driver ahci_driver = { |
329 | .probe = ahci_probe, | ||
329 | .remove = __devexit_p(ahci_remove), | 330 | .remove = __devexit_p(ahci_remove), |
330 | .driver = { | 331 | .driver = { |
331 | .name = "ahci", | 332 | .name = "ahci", |
@@ -338,7 +339,7 @@ static struct platform_driver ahci_driver = { | |||
338 | 339 | ||
339 | static int __init ahci_init(void) | 340 | static int __init ahci_init(void) |
340 | { | 341 | { |
341 | return platform_driver_probe(&ahci_driver, ahci_probe); | 342 | return platform_driver_register(&ahci_driver); |
342 | } | 343 | } |
343 | module_init(ahci_init); | 344 | module_init(ahci_init); |
344 | 345 | ||