aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ahci_st.c')
-rw-r--r--drivers/ata/ahci_st.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
index 2f9e8317cc16..bc971af262e7 100644
--- a/drivers/ata/ahci_st.c
+++ b/drivers/ata/ahci_st.c
@@ -23,6 +23,8 @@
23 23
24#include "ahci.h" 24#include "ahci.h"
25 25
26#define DRV_NAME "st_ahci"
27
26#define ST_AHCI_OOBR 0xbc 28#define ST_AHCI_OOBR 0xbc
27#define ST_AHCI_OOBR_WE BIT(31) 29#define ST_AHCI_OOBR_WE BIT(31)
28#define ST_AHCI_OOBR_CWMIN_SHIFT 24 30#define ST_AHCI_OOBR_CWMIN_SHIFT 24
@@ -140,6 +142,10 @@ static const struct ata_port_info st_ahci_port_info = {
140 .port_ops = &st_ahci_port_ops, 142 .port_ops = &st_ahci_port_ops,
141}; 143};
142 144
145static struct scsi_host_template ahci_platform_sht = {
146 AHCI_SHT(DRV_NAME),
147};
148
143static int st_ahci_probe(struct platform_device *pdev) 149static int st_ahci_probe(struct platform_device *pdev)
144{ 150{
145 struct st_ahci_drv_data *drv_data; 151 struct st_ahci_drv_data *drv_data;
@@ -166,7 +172,8 @@ static int st_ahci_probe(struct platform_device *pdev)
166 if (err) 172 if (err)
167 return err; 173 return err;
168 174
169 err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info); 175 err = ahci_platform_init_host(pdev, hpriv, &st_ahci_port_info,
176 &ahci_platform_sht);
170 if (err) { 177 if (err) {
171 ahci_platform_disable_resources(hpriv); 178 ahci_platform_disable_resources(hpriv);
172 return err; 179 return err;
@@ -229,7 +236,7 @@ MODULE_DEVICE_TABLE(of, st_ahci_match);
229 236
230static struct platform_driver st_ahci_driver = { 237static struct platform_driver st_ahci_driver = {
231 .driver = { 238 .driver = {
232 .name = "st_ahci", 239 .name = DRV_NAME,
233 .pm = &st_ahci_pm_ops, 240 .pm = &st_ahci_pm_ops,
234 .of_match_table = of_match_ptr(st_ahci_match), 241 .of_match_table = of_match_ptr(st_ahci_match),
235 }, 242 },