media: cx231xx: only unregister successfully registered i2c adapters

This prevents potentially scary debug messages from the i2c core.

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>
This commit is contained in:
Peter Rosin 2017-07-31 09:38:52 -04:00 • committed by Mauro Carvalho Chehab
commit 8e2803ffd6
2 changed files with 5 additions and 1 deletions