media: cx231xx: fail probe if i2c_add_adapter fails
authorPeter Rosin <peda@axentia.se>
Mon, 31 Jul 2017 13:38:50 +0000 (09:38 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 9 Aug 2017 14:15:03 +0000 (10:15 -0400)
commit54b1b41f8be7017950d7cdfe8834ed6361d0e33a
tree91c5e008c99fdee4cdf8172ab80dbca1cfaa388d
parentc6e3bdb8e6a1f0007c6ea1502a46552b789c79f3
media: cx231xx: fail probe if i2c_add_adapter fails

While at it, change the type of the previously always-zero i2c_rc
member to int, matching the returned type from i2c_add_adapter.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/cx231xx/cx231xx-i2c.c
drivers/media/usb/cx231xx/cx231xx.h