From: H Hartley Sweeten Date: Tue, 18 Jun 2013 20:26:59 +0000 (-0700) Subject: staging: comedi: pcmuio: return 0 for successful attach X-Git-Tag: firefly_0821_release~176^2~5845^2~36 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee81b210fe9f761a3d34f6c061c67e6313df06bc;p=firefly-linux-kernel-4.4.55.git staging: comedi: pcmuio: return 0 for successful attach Returning 0 for success is more common. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index 46def3b402da..bc969d24d1a3 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -672,7 +672,7 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it) devpriv->asics[asic].irq = irq[asic]; } - return 1; + return 0; } static void pcmuio_detach(struct comedi_device *dev)