diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/xen-blkfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index d5e1ab956740..98cbeba8cd53 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -1475,7 +1475,7 @@ static int __init xlblk_init(void) | |||
1475 | if (!xen_domain()) | 1475 | if (!xen_domain()) |
1476 | return -ENODEV; | 1476 | return -ENODEV; |
1477 | 1477 | ||
1478 | if (!xen_platform_pci_unplug) | 1478 | if (xen_hvm_domain() && !xen_platform_pci_unplug) |
1479 | return -ENODEV; | 1479 | return -ENODEV; |
1480 | 1480 | ||
1481 | if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) { | 1481 | if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) { |