aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Ringel <[email protected]>2010-02-05 19:57:02 -0300
committerMauro Carvalho Chehab <[email protected]>2010-05-18 00:43:49 -0300
commit80af6bb73e52c614e0571f82e4dd88a6941066a4 (patch)
treeb1c13e4a65c7574390d7e99a2621fd56e48bfbb8
parent04574a6881cd4b49b49ba95f893520dabe1d76f5 (diff)
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/staging/tm6000/tm6000-cards.c1
1 files changed, 1 insertions, 0 deletions
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);