9
0
Fork 0

pci: prettyprint device names

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-10-04 19:40:13 +02:00 committed by Sascha Hauer
parent b8a1bb1dd2
commit 48f88df158
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ int pci_register_device(struct pci_dev *pdev)
struct device_d *dev = &pdev->dev;
int ret;
strcpy(dev->name, "pci");
snprintf(dev->name, MAX_DRIVER_NAME, "pci-%04x:%04x.",
pdev->vendor, pdev->device);
dev->bus = &pci_bus;
dev->id = DEVICE_ID_DYNAMIC;