[device] Make driver name a generic device property

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2011-04-07 23:09:19 +01:00
parent 6e6ecacebf
commit fc7e2be617
12 changed files with 14 additions and 16 deletions
+1
View File
@@ -114,6 +114,7 @@ static int isabus_probe ( struct root_device *rootdev ) {
/* Add to device hierarchy */
snprintf ( isa->dev.name, sizeof ( isa->dev.name ),
"ISA%04x", isa->ioaddr );
isa->dev.driver_name = driver->name;
isa->dev.desc.bus_type = BUS_TYPE_ISA;
isa->dev.desc.vendor = driver->vendor_id;
isa->dev.desc.device = driver->prod_id;