Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133420
b: refs/heads/master
c: df38855
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent c70e350 commit 1e4619a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 1692713ee94e8d26f592a8e90b817ef66354246c
refs/heads/master: df388556d7d845983c0da3a4a49873472c466275
8 changes: 4 additions & 4 deletions trunk/drivers/tc/tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static void __init tc_bus_add_devices(struct tc_bus *tbus)
slot);
goto out_err;
}
sprintf(tdev->dev.bus_id, "tc%x", slot);
dev_set_name(&tdev->dev, "tc%x", slot);
tdev->bus = tbus;
tdev->dev.parent = &tbus->dev;
tdev->dev.bus = &tc_bus_type;
Expand All @@ -104,7 +104,7 @@ static void __init tc_bus_add_devices(struct tc_bus *tbus)
tdev->vendor[8] = 0;
tdev->name[8] = 0;

pr_info("%s: %s %s %s\n", tdev->dev.bus_id, tdev->vendor,
pr_info("%s: %s %s %s\n", dev_name(&tdev->dev), tdev->vendor,
tdev->name, tdev->firmware);

devsize = readb(module + offset + TC_SLOT_SIZE);
Expand All @@ -118,7 +118,7 @@ static void __init tc_bus_add_devices(struct tc_bus *tbus)
} else {
printk(KERN_ERR "%s: Cannot provide slot space "
"(%dMiB required, up to %dMiB supported)\n",
tdev->dev.bus_id, devsize >> 20,
dev_name(&tdev->dev), devsize >> 20,
max(slotsize, extslotsize) >> 20);
kfree(tdev);
goto out_err;
Expand Down Expand Up @@ -146,7 +146,7 @@ static int __init tc_init(void)
return 0;

INIT_LIST_HEAD(&tc_bus.devices);
strcpy(tc_bus.dev.bus_id, "tc");
dev_set_name(&tc_bus.dev, "tc");
device_register(&tc_bus.dev);

if (tc_bus.info.slot_size) {
Expand Down

0 comments on commit 1e4619a

Please sign in to comment.