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 4276ab035e00..19b6005a323e 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -1452,7 +1452,7 @@ static int __init xlblk_init(void) | |||
1452 | if (!xen_domain()) | 1452 | if (!xen_domain()) |
1453 | return -ENODEV; | 1453 | return -ENODEV; |
1454 | 1454 | ||
1455 | if (!xen_platform_pci_unplug) | 1455 | if (xen_hvm_domain() && !xen_platform_pci_unplug) |
1456 | return -ENODEV; | 1456 | return -ENODEV; |
1457 | 1457 | ||
1458 | if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) { | 1458 | if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) { |