]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/xen-blkfront.c
xen: clean up domain mode predicates
[linux-2.6-omap-h63xx.git] / drivers / block / xen-blkfront.c
index 9ae05c5842344c56d06a187764dbd328ab5e4822..d5e753255153cb2e40232d72ab8b9be4551ec44b 100644 (file)
@@ -154,8 +154,8 @@ static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg)
        return 0;
 }
 
-int blkif_ioctl(struct inode *inode, struct file *filep,
-               unsigned command, unsigned long argument)
+static int blkif_ioctl(struct inode *inode, struct file *filep,
+                      unsigned command, unsigned long argument)
 {
        struct blkfront_info *info =
                inode->i_bdev->bd_disk->private_data;
@@ -1032,7 +1032,7 @@ static struct xenbus_driver blkfront = {
 
 static int __init xlblk_init(void)
 {
-       if (!is_running_on_xen())
+       if (!xen_domain())
                return -ENODEV;
 
        if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) {