1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Set misc device parent to aid in device discovery

This commit is contained in:
Alex Forencich 2019-11-10 14:44:20 -08:00
parent eddd7c3b03
commit 334738a567

View File

@ -302,6 +302,7 @@ static int mqnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
mqnic->misc_dev.name = mqnic->name;
mqnic->misc_dev.fops = &mqnic_fops;
mqnic->misc_dev.parent = dev;
ret = misc_register(&mqnic->misc_dev);
if (ret)