Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123525
b: refs/heads/master
c: dc09c78
h: refs/heads/master
i:
  123523: 6bec1ad
v: v3
  • Loading branch information
Kay Sievers authored and Bartlomiej Zolnierkiewicz committed Dec 29, 2008
1 parent 19a4fd5 commit 738cede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 702c026be87ef8374ae58122969a4b0b081ce6f2
refs/heads/master: dc09c78425de89c80c51319c3fbb939f7960c59c
4 changes: 2 additions & 2 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 738cede

Please sign in to comment.