[PATCH 3/3] libata: sanitize PMP link naming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Do not set the ata_link name to 'link<port>.<pmp>.0' as we only have
one device attached, rather use the simpler 'link<port>.<pmp>' to
avoid having the only three-level naming in libata.

Signed-off-by: Hannes Reinecke <hare@xxxxxxx>
---
 drivers/ata/libata-transport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c
index efca41039d1e..ee4aaf67234f 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -738,7 +738,7 @@ static int ata_tdev_add(struct ata_device *ata_dev)
 	if (ata_is_host_link(link))
 		dev_set_name(dev, "dev%d.%d", ap->print_id, ata_dev->devno);
 	else
-		dev_set_name(dev, "dev%d.%d.0", ap->print_id, link->pmp);
+		dev_set_name(dev, "dev%d.%d", ap->print_id, link->pmp);
 
 	transport_setup_device(dev);
 	ata_acpi_bind_dev(ata_dev);
-- 
2.29.2




[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux