diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-29 20:36:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:31 -0500 |
commit | 1e0b2cf933ebf32494eba3f668859ba57f06a951 (patch) | |
tree | b8d9a3b41a452fb922cd3425e67ea8278c128c70 /drivers/base/isa.c | |
parent | 210272a28465a7a31bcd580d2f9529f924965aa5 (diff) |
driver core: struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/isa.c')
-rw-r--r-- | drivers/base/isa.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/base/isa.c b/drivers/base/isa.c index efd577574948..479694b6cbe3 100644 --- a/drivers/base/isa.c +++ b/drivers/base/isa.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/isa.h> | 11 | #include <linux/isa.h> |
12 | 12 | ||
13 | static struct device isa_bus = { | 13 | static struct device isa_bus = { |
14 | .bus_id = "isa" | 14 | .init_name = "isa" |
15 | }; | 15 | }; |
16 | 16 | ||
17 | struct isa_dev { | 17 | struct isa_dev { |
@@ -135,9 +135,8 @@ int isa_register_driver(struct isa_driver *isa_driver, unsigned int ndev) | |||
135 | isa_dev->dev.parent = &isa_bus; | 135 | isa_dev->dev.parent = &isa_bus; |
136 | isa_dev->dev.bus = &isa_bus_type; | 136 | isa_dev->dev.bus = &isa_bus_type; |
137 | 137 | ||
138 | snprintf(isa_dev->dev.bus_id, BUS_ID_SIZE, "%s.%u", | 138 | dev_set_name(&isa_dev->dev, "%s.%u", |
139 | isa_driver->driver.name, id); | 139 | isa_driver->driver.name, id); |
140 | |||
141 | isa_dev->dev.platform_data = isa_driver; | 140 | isa_dev->dev.platform_data = isa_driver; |
142 | isa_dev->dev.release = isa_dev_release; | 141 | isa_dev->dev.release = isa_dev_release; |
143 | isa_dev->id = id; | 142 | isa_dev->id = id; |