xen: only check xen_platform_pci_unplug if hvm
[deliverable/linux.git] / drivers / net / xen-netfront.c
index 8cc0914b9f9210eb96fe5f1c115ceb59e9d70cd1..ccba19c72a364159db09dfa8368eb5a3770ecfd2 100644 (file)
@@ -1957,7 +1957,7 @@ static int __init netif_init(void)
        if (xen_initial_domain())
                return 0;
 
-       if (!xen_platform_pci_unplug)
+       if (xen_hvm_domain() && !xen_platform_pci_unplug)
                return -ENODEV;
 
        printk(KERN_INFO "Initialising Xen virtual ethernet driver.\n");
This page took 0.028527 seconds and 5 git commands to generate.