projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
702c026
)
ide: struct device - replace bus_id with dev_name(), dev_set_name()
author
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 29 Dec 2008 19:27:36 +0000
(20:27 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 29 Dec 2008 19:27:36 +0000
(20:27 +0100)
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-probe.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-probe.c
b/drivers/ide/ide-probe.c
index c1cd1af2646b98c06cdfc3b1166007ecb14c2182..aaefd70dbff6f9486eebb50c192bc1c315180858 100644
(file)
--- a/
drivers/ide/ide-probe.c
+++ b/
drivers/ide/ide-probe.c
@@
-642,7
+642,7
@@
static int ide_register_port(ide_hwif_t *hwif)
int ret;
/* register with global device tree */
-
strlcpy(hwif->gendev.bus_id,hwif->name,BUS_ID_SIZE
);
+
dev_set_name(&hwif->gendev, hwif->name
);
hwif->gendev.driver_data = hwif;
if (hwif->gendev.parent == NULL) {
if (hwif->dev)
@@
-1315,7
+1315,7
@@
static void hwif_register_devices(ide_hwif_t *hwif)
if ((drive->dev_flags & IDE_DFLAG_PRESENT) == 0)
continue;
-
snprintf(dev->bus_id, BUS_ID_SIZE
, "%u.%u", hwif->index, i);
+
dev_set_name(dev
, "%u.%u", hwif->index, i);
dev->parent = &hwif->gendev;
dev->bus = &ide_bus_type;
dev->driver_data = drive;