aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_da850.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ahci_da850.c')
-rw-r--r--drivers/ata/ahci_da850.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c
index ce8a7a6d6c7f..267a3d3e79f4 100644
--- a/drivers/ata/ahci_da850.c
+++ b/drivers/ata/ahci_da850.c
@@ -16,6 +16,8 @@
16#include <linux/ahci_platform.h> 16#include <linux/ahci_platform.h>
17#include "ahci.h" 17#include "ahci.h"
18 18
19#define DRV_NAME "ahci_da850"
20
19/* SATA PHY Control Register offset from AHCI base */ 21/* SATA PHY Control Register offset from AHCI base */
20#define SATA_P0PHYCR_REG 0x178 22#define SATA_P0PHYCR_REG 0x178
21 23
@@ -59,6 +61,10 @@ static const struct ata_port_info ahci_da850_port_info = {
59 .port_ops = &ahci_platform_ops, 61 .port_ops = &ahci_platform_ops,
60}; 62};
61 63
64static struct scsi_host_template ahci_platform_sht = {
65 AHCI_SHT(DRV_NAME),
66};
67
62static int ahci_da850_probe(struct platform_device *pdev) 68static int ahci_da850_probe(struct platform_device *pdev)
63{ 69{
64 struct device *dev = &pdev->dev; 70 struct device *dev = &pdev->dev;
@@ -85,7 +91,8 @@ static int ahci_da850_probe(struct platform_device *pdev)
85 91
86 da850_sata_init(dev, pwrdn_reg, hpriv->mmio); 92 da850_sata_init(dev, pwrdn_reg, hpriv->mmio);
87 93
88 rc = ahci_platform_init_host(pdev, hpriv, &ahci_da850_port_info); 94 rc = ahci_platform_init_host(pdev, hpriv, &ahci_da850_port_info,
95 &ahci_platform_sht);
89 if (rc) 96 if (rc)
90 goto disable_resources; 97 goto disable_resources;
91 98
@@ -102,7 +109,7 @@ static struct platform_driver ahci_da850_driver = {
102 .probe = ahci_da850_probe, 109 .probe = ahci_da850_probe,
103 .remove = ata_platform_remove_one, 110 .remove = ata_platform_remove_one,
104 .driver = { 111 .driver = {
105 .name = "ahci_da850", 112 .name = DRV_NAME,
106 .pm = &ahci_da850_pm_ops, 113 .pm = &ahci_da850_pm_ops,
107 }, 114 },
108}; 115};