diff options
Diffstat (limited to 'drivers/ata/ahci_tegra.c')
-rw-r--r-- | drivers/ata/ahci_tegra.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c index 032904402c95..3a62eb246d80 100644 --- a/drivers/ata/ahci_tegra.c +++ b/drivers/ata/ahci_tegra.c | |||
@@ -31,6 +31,8 @@ | |||
31 | 31 | ||
32 | #include "ahci.h" | 32 | #include "ahci.h" |
33 | 33 | ||
34 | #define DRV_NAME "tegra-ahci" | ||
35 | |||
34 | #define SATA_CONFIGURATION_0 0x180 | 36 | #define SATA_CONFIGURATION_0 0x180 |
35 | #define SATA_CONFIGURATION_EN_FPCI BIT(0) | 37 | #define SATA_CONFIGURATION_EN_FPCI BIT(0) |
36 | 38 | ||
@@ -289,6 +291,10 @@ static const struct of_device_id tegra_ahci_of_match[] = { | |||
289 | }; | 291 | }; |
290 | MODULE_DEVICE_TABLE(of, tegra_ahci_of_match); | 292 | MODULE_DEVICE_TABLE(of, tegra_ahci_of_match); |
291 | 293 | ||
294 | static struct scsi_host_template ahci_platform_sht = { | ||
295 | AHCI_SHT(DRV_NAME), | ||
296 | }; | ||
297 | |||
292 | static int tegra_ahci_probe(struct platform_device *pdev) | 298 | static int tegra_ahci_probe(struct platform_device *pdev) |
293 | { | 299 | { |
294 | struct ahci_host_priv *hpriv; | 300 | struct ahci_host_priv *hpriv; |
@@ -354,7 +360,8 @@ static int tegra_ahci_probe(struct platform_device *pdev) | |||
354 | if (ret) | 360 | if (ret) |
355 | return ret; | 361 | return ret; |
356 | 362 | ||
357 | ret = ahci_platform_init_host(pdev, hpriv, &ahci_tegra_port_info); | 363 | ret = ahci_platform_init_host(pdev, hpriv, &ahci_tegra_port_info, |
364 | &ahci_platform_sht); | ||
358 | if (ret) | 365 | if (ret) |
359 | goto deinit_controller; | 366 | goto deinit_controller; |
360 | 367 | ||
@@ -370,7 +377,7 @@ static struct platform_driver tegra_ahci_driver = { | |||
370 | .probe = tegra_ahci_probe, | 377 | .probe = tegra_ahci_probe, |
371 | .remove = ata_platform_remove_one, | 378 | .remove = ata_platform_remove_one, |
372 | .driver = { | 379 | .driver = { |
373 | .name = "tegra-ahci", | 380 | .name = DRV_NAME, |
374 | .of_match_table = tegra_ahci_of_match, | 381 | .of_match_table = tegra_ahci_of_match, |
375 | }, | 382 | }, |
376 | /* LP0 suspend support not implemented */ | 383 | /* LP0 suspend support not implemented */ |