bus_managers/pci: set legacy device name to driver name

Change-Id: Idf14da8f105ab7ed6ac78053acb344045d97306a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3388
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
X512 2020-11-10 21:32:23 +09:00 committed by Adrien Destugues
parent 33db0930ac
commit 1aef13ad6d

View File

@ -147,6 +147,7 @@ pci_reserve_device(uchar virtualBus, uchar device, uchar function,
device_attr drvAttrs[] = {
// info about device
{B_DEVICE_BUS, B_STRING_TYPE, {string: "legacy_driver"}},
{B_DEVICE_PRETTY_NAME, B_STRING_TYPE, {string: driverName}},
{"legacy_driver", B_STRING_TYPE, {string: driverName}},
{"legacy_driver_cookie", B_UINT64_TYPE, {ui64: (uint64)nodeCookie}},
{NULL}