From: Stefan Ringel Date: Fri, 5 Feb 2010 22:57:02 +0000 (-0300) Subject: V4L/DVB: tm6000: fix: avoid unregister the driver after success X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=80af6bb73e52c614e0571f82e4dd88a6941066a4;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB: tm6000: fix: avoid unregister the driver after success 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/tm6000/tm6000-cards.c b/drivers/staging/tm6000/tm6000-cards.c index f6be4c5d88ca..e1a6c1666543 100644 --- a/drivers/staging/tm6000/tm6000-cards.c +++ b/drivers/staging/tm6000/tm6000-cards.c @@ -421,6 +421,7 @@ static int tm6000_init_dev(struct tm6000_core *dev) } #endif } + return 0; err2: v4l2_device_unregister(&dev->v4l2_dev);