.. | .. |
---|
266 | 266 | put_device(dev); |
---|
267 | 267 | } |
---|
268 | 268 | |
---|
| 269 | +static const struct device_type ata_port_sas_type = { |
---|
| 270 | + .name = ATA_PORT_TYPE_NAME, |
---|
| 271 | +}; |
---|
| 272 | + |
---|
269 | 273 | /** ata_tport_add - initialize a transport ATA port structure |
---|
270 | 274 | * |
---|
271 | 275 | * @parent: parent device |
---|
.. | .. |
---|
283 | 287 | struct device *dev = &ap->tdev; |
---|
284 | 288 | |
---|
285 | 289 | device_initialize(dev); |
---|
286 | | - dev->type = &ata_port_type; |
---|
| 290 | + if (ap->flags & ATA_FLAG_SAS_HOST) |
---|
| 291 | + dev->type = &ata_port_sas_type; |
---|
| 292 | + else |
---|
| 293 | + dev->type = &ata_port_type; |
---|
287 | 294 | |
---|
288 | 295 | dev->parent = parent; |
---|
289 | 296 | ata_host_get(ap->host); |
---|