Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133419
b: refs/heads/master
c: 1692713
h: refs/heads/master
i:
  133417: 4ac879d
  133415: 41856cb
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent 44a5035 commit c70e350
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: 65a212dd71ffd99c83ad780205932fcb96a973b6
refs/heads/master: 1692713ee94e8d26f592a8e90b817ef66354246c
8 changes: 4 additions & 4 deletions trunk/drivers/sh/maple/maple.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static void maple_attach_driver(struct maple_device *mdev)
/* Do this silently - as not a real device */
function = 0;
mdev->driver = &maple_dummy_driver;
sprintf(mdev->dev.bus_id, "%d:0.port", mdev->port);
dev_set_name(&mdev->dev, "%d:0.port", mdev->port);
} else {
printk(KERN_INFO
"Maple bus at (%d, %d): Function 0x%lX\n",
Expand All @@ -440,8 +440,8 @@ static void maple_attach_driver(struct maple_device *mdev)
"No maple driver found.\n");
mdev->driver = &maple_dummy_driver;
}
sprintf(mdev->dev.bus_id, "%d:0%d.%lX", mdev->port,
mdev->unit, function);
dev_set_name(&mdev->dev, "%d:0%d.%lX", mdev->port,
mdev->unit, function);
}
mdev->function = function;
mdev->dev.release = &maple_release_device;
Expand Down Expand Up @@ -780,7 +780,7 @@ struct bus_type maple_bus_type = {
EXPORT_SYMBOL_GPL(maple_bus_type);

static struct device maple_bus = {
.bus_id = "maple",
.init_name = "maple",
.release = maple_bus_release,
};

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/sh/superhyway/superhyway.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
static int superhyway_devices;

static struct device superhyway_bus_device = {
.bus_id = "superhyway",
.init_name = "superhyway",
};

static void superhyway_device_release(struct device *dev)
Expand Down Expand Up @@ -83,7 +83,7 @@ int superhyway_add_device(unsigned long base, struct superhyway_device *sdev,
dev->id.id = dev->vcr.mod_id;

sprintf(dev->name, "SuperHyway device %04x", dev->id.id);
sprintf(dev->dev.bus_id, "%02x", superhyway_devices);
dev_set_name(&dev->dev, "%02x", superhyway_devices);

superhyway_devices++;

Expand Down

0 comments on commit c70e350

Please sign in to comment.