harry
2005-Nov-17 10:50 UTC
[Xen-devel] [PATCH] make otherend_changed entrypoint optional for xenbus devices
Ewan,
Here''s the patch for making the otherend_changed entrypoint
optional. The USB driver doesn''t need this entrypoint because the
state
machine driven by it is factored out of the driver code entirely into
xenidc.
This is a resend. I forgot to put [PATCH] in the subject line last
time.
Signed-off-by: Harry Butterworth butterwo@uk.ibm.com
diff -r 595ef1ab007c -r 2089b7edcada
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Tue Nov
15 14:44:59 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Tue Nov
15 16:43:02 2005
@@ -299,8 +299,8 @@
DPRINTK("state is %d, %s, %s",
state, dev->otherend_watch.node, vec[XS_WATCH_PATH]);
-
- drv->otherend_changed(dev, state);
+ if (drv->otherend_changed)
+ drv->otherend_changed(dev, state);
}
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
Ewan Mellor
2005-Nov-17 10:55 UTC
Re: [Xen-devel] [PATCH] make otherend_changed entrypoint optional for xenbus devices
On Thu, Nov 17, 2005 at 10:50:36AM +0000, harry wrote:> Ewan, > > Here''s the patch for making the otherend_changed entrypoint > optional. The USB driver doesn''t need this entrypoint because the state > machine driven by it is factored out of the driver code entirely into > xenidc.Applied, thanks. Sorry I missed it last time around. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel