Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295500
b: refs/heads/master
c: b9136d2
h: refs/heads/master
v: v3
  • Loading branch information
Igor Mammedov authored and Konrad Rzeszutek Wilk committed Mar 22, 2012
1 parent 5263200 commit 50fe593
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 106b44388d8f76373149c4ea144f717b6d4d9a6d
refs/heads/master: b9136d207f0c05c96c6b9c980fa7f7fd541a65a8
3 changes: 3 additions & 0 deletions trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,9 @@ static int __init xlblk_init(void)
if (!xen_domain())
return -ENODEV;

if (!xen_platform_pci_unplug)
return -ENODEV;

if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) {
printk(KERN_WARNING "xen_blk: can't get major %d with name %s\n",
XENVBD_MAJOR, DEV_NAME);
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/xen-netfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <xen/xenbus.h>
#include <xen/events.h>
#include <xen/page.h>
#include <xen/platform_pci.h>
#include <xen/grant_table.h>

#include <xen/interface/io/netif.h>
Expand Down Expand Up @@ -1956,6 +1957,9 @@ static int __init netif_init(void)
if (xen_initial_domain())
return 0;

if (!xen_platform_pci_unplug)
return -ENODEV;

printk(KERN_INFO "Initialising Xen virtual ethernet driver.\n");

return xenbus_register_frontend(&netfront_driver);
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/xen/platform-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ static struct pci_driver platform_driver = {

static int __init platform_pci_module_init(void)
{
/* no unplug has been done, IGNORE hasn't been specified: just
* return now */
if (!xen_platform_pci_unplug)
return -ENODEV;

return pci_register_driver(&platform_driver);
}

Expand Down

0 comments on commit 50fe593

Please sign in to comment.