Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
[linux.git] / drivers / pci / controller / pci-hyperv.c
index 9c93ac2215b750dec6b8e811a983d279a0ad8b9b..0ca73c851e0fb767eb1e3984a0d82c4fc8421453 100644 (file)
@@ -2820,6 +2820,7 @@ static int hv_pci_probe(struct hv_device *hdev,
                        const struct hv_vmbus_device_id *dev_id)
 {
        struct hv_pcibus_device *hbus;
+       char *name;
        int ret;
 
        /*
@@ -2888,7 +2889,14 @@ static int hv_pci_probe(struct hv_device *hdev,
                goto free_config;
        }
 
-       hbus->sysdata.fwnode = irq_domain_alloc_fwnode(hbus);
+       name = kasprintf(GFP_KERNEL, "%pUL", &hdev->dev_instance);
+       if (!name) {
+               ret = -ENOMEM;
+               goto unmap;
+       }
+
+       hbus->sysdata.fwnode = irq_domain_alloc_named_fwnode(name);
+       kfree(name);
        if (!hbus->sysdata.fwnode) {
                ret = -ENOMEM;
                goto unmap;
This page took 0.033253 seconds and 4 git commands to generate.