upstream: [media] tlg2300: implement error handling in poseidon_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 24 Jun 2013 18:57:36 +0000 (15:57 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:28 +0000 (11:51 +0900)
commitdb0ce476969fff8c5b9276bd3d393217ee7eeaf4
tree9175ab0f8b45141513b04caed04c06ab56e790cc
parenta7aef479a9f0bc85ea82fbe01f4b4a9d063722ff
upstream: [media] tlg2300: implement error handling in poseidon_probe()

All poseidon init functions properly return error codes,
but they are ignored by poseidon_probe(). The patch implements
handling of error cases.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/tlg2300/pd-main.c