diff options
author | Jeff Garzik <jeff@garzik.org> | 2013-01-25 15:30:23 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-01-25 15:30:23 -0500 |
commit | e175435ed281d06ffd56d4edc8a2dd56f8672f07 (patch) | |
tree | b6a623622b8e807400aa9a86d1068aa41485077a /drivers/ata | |
parent | 7e15e9be37eb834aaaca69030064ac97eaf5df2f (diff) |
Revert "libata: export host controller number thru /sys"
This reverts commit 1757d902b029a29dfcef63609964385cf8865b5a.
Discussion continues upstream.
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 4 | ||||
-rw-r--r-- | drivers/ata/libata-transport.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index b7eed827daae..4b6fb48eb831 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -99,7 +99,6 @@ static void ata_dev_xfermask(struct ata_device *dev); | |||
99 | static unsigned long ata_dev_blacklisted(const struct ata_device *dev); | 99 | static unsigned long ata_dev_blacklisted(const struct ata_device *dev); |
100 | 100 | ||
101 | atomic_t ata_print_id = ATOMIC_INIT(0); | 101 | atomic_t ata_print_id = ATOMIC_INIT(0); |
102 | atomic_t host_print_id = ATOMIC_INIT(0); | ||
103 | 102 | ||
104 | struct ata_force_param { | 103 | struct ata_force_param { |
105 | const char *name; | 104 | const char *name; |
@@ -6119,9 +6118,6 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht) | |||
6119 | for (i = host->n_ports; host->ports[i]; i++) | 6118 | for (i = host->n_ports; host->ports[i]; i++) |
6120 | kfree(host->ports[i]); | 6119 | kfree(host->ports[i]); |
6121 | 6120 | ||
6122 | /* track host controller */ | ||
6123 | host->host_id = atomic_inc_return(&host_print_id); | ||
6124 | |||
6125 | /* give ports names and add SCSI hosts */ | 6121 | /* give ports names and add SCSI hosts */ |
6126 | for (i = 0; i < host->n_ports; i++) | 6122 | for (i = 0; i < host->n_ports; i++) |
6127 | host->ports[i]->print_id = atomic_inc_return(&ata_print_id); | 6123 | host->ports[i]->print_id = atomic_inc_return(&ata_print_id); |
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c index 61dca7a20a31..c04d393d20c1 100644 --- a/drivers/ata/libata-transport.c +++ b/drivers/ata/libata-transport.c | |||
@@ -284,7 +284,7 @@ int ata_tport_add(struct device *parent, | |||
284 | 284 | ||
285 | dev->parent = get_device(parent); | 285 | dev->parent = get_device(parent); |
286 | dev->release = ata_tport_release; | 286 | dev->release = ata_tport_release; |
287 | dev_set_name(dev, "ata%d.%d", ap->host->host_id, ap->print_id); | 287 | dev_set_name(dev, "ata%d", ap->print_id); |
288 | transport_setup_device(dev); | 288 | transport_setup_device(dev); |
289 | error = device_add(dev); | 289 | error = device_add(dev); |
290 | if (error) { | 290 | if (error) { |