V4L/DVB: tm6000: fix: avoid unregister the driver after success
authorStefan Ringel <stefan.ringel@arcor.de>
Fri, 5 Feb 2010 22:57:02 +0000 (19:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:43:49 +0000 (00:43 -0300)
After successfully running tm6000_init_dev, due to a lack of a return(),
the driver runs the error code, unregistering the device.

Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-cards.c

index f6be4c5d88ca474f6783921de244e184ce982255..e1a6c16665430dd50a2efecbe1d1a186998a47ac 100644 (file)
@@ -421,6 +421,7 @@ static int tm6000_init_dev(struct tm6000_core *dev)
                }
 #endif
        }
+       return 0;
 
 err2:
        v4l2_device_unregister(&dev->v4l2_dev);