Commit 80af6bb7 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab
Browse files

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: default avatarStefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 04574a68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -421,6 +421,7 @@ static int tm6000_init_dev(struct tm6000_core *dev)
		}
#endif
	}
	return 0;

err2:
	v4l2_device_unregister(&dev->v4l2_dev);