summaryrefslogtreecommitdiffstats
path: root/drivers/xen/xenbus/xenbus_comms.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2012-09-14 12:13:12 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-09-17 10:04:04 -0400
commitecc635f90adfe1b7cd5fd354f49edfbf24aa4e3e (patch)
tree541a0ea9d95cf25eb45e2c8d33a3111a623f9ad1 /drivers/xen/xenbus/xenbus_comms.c
parente58f5b55113b8fd4eb8eb43f5508d87e4862f280 (diff)
downloadop-kernel-dev-ecc635f90adfe1b7cd5fd354f49edfbf24aa4e3e.zip
op-kernel-dev-ecc635f90adfe1b7cd5fd354f49edfbf24aa4e3e.tar.gz
xen/arm: compile and run xenbus
bind_evtchn_to_irqhandler can legitimately return 0 (irq 0): it is not an error. If Linux is running as an HVM domain and is running as Dom0, use xenstored_local_init to initialize the xenstore page and event channel. Changes in v4: - do not xs_reset_watches on dom0. Changes in v2: - refactor xenbus_init. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> [v5: Fixed case switch indentations] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xenbus/xenbus_comms.c')
-rw-r--r--drivers/xen/xenbus/xenbus_comms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_comms.c b/drivers/xen/xenbus/xenbus_comms.c
index 52fe7ad..c5aa55c 100644
--- a/drivers/xen/xenbus/xenbus_comms.c
+++ b/drivers/xen/xenbus/xenbus_comms.c
@@ -224,7 +224,7 @@ int xb_init_comms(void)
int err;
err = bind_evtchn_to_irqhandler(xen_store_evtchn, wake_waiting,
0, "xenbus", &xb_waitq);
- if (err <= 0) {
+ if (err < 0) {
printk(KERN_ERR "XENBUS request irq failed %i\n", err);
return err;
}
OpenPOWER on IntegriCloud