direct-io.hg

changeset 7857:2ce5edc0ccbd

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.

Signed-off-by: Harry Butterworth butterwo@uk.ibm.com
author emellor@leeni.uk.xensource.com
date Thu Nov 17 11:54:52 2005 +0100 (2005-11-17)
parents 3f39f030fa89
children 234b3d608c86
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Wed Nov 16 20:33:23 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Thu Nov 17 11:54:52 2005 +0100
     1.3 @@ -299,8 +299,8 @@ static void otherend_changed(struct xenb
     1.4  
     1.5  	DPRINTK("state is %d, %s, %s",
     1.6  		state, dev->otherend_watch.node, vec[XS_WATCH_PATH]);
     1.7 -
     1.8 -	drv->otherend_changed(dev, state);
     1.9 +	if (drv->otherend_changed)
    1.10 +		drv->otherend_changed(dev, state);
    1.11  }
    1.12  
    1.13