staging: comedi: comedi_bond: change return value of bonding_attach()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 23 Aug 2013 13:45:01 +0000 (14:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 13:41:56 +0000 (06:41 -0700)
`bonding_attach()` is the comedi "attach" handler for the driver.  Any
non-negative return value is treated as successful, but 0 is the
preferred return value on success.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/comedi_bond.c

index 4a1135b6e4c5e920a85b6e594839b4c6ffdcd97a..dd93e4f0d89012e14be9d62cec5393293f98cd7b 100644 (file)
@@ -336,7 +336,7 @@ static int bonding_attach(struct comedi_device *dev,
                dev->driver->driver_name, dev->board_name,
                devpriv->nchans, devpriv->ndevs);
 
-       return 1;
+       return 0;
 }
 
 static void bonding_detach(struct comedi_device *dev)