]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11568): cx18: Fix the handling of i2c bus registration error
authorJean Delvare <khali@linux-fr.org>
Fri, 17 Apr 2009 13:56:51 +0000 (10:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Apr 2009 18:41:13 +0000 (15:41 -0300)
commitf7ee72cfed46f434df42b35481675de85ec2f3bb
treea0e8069b696d27fd5a0c38f2ae91355c83069d69
parent7efbfa845f7e50e57f836fb7e6d35c3fdff425ba
V4L/DVB (11568): cx18: Fix the handling of i2c bus registration error

* Return actual error values as returned by the i2c subsystem, rather
  than 0 or 1.
* If the registration of the second bus fails, unregister the first one
  before exiting, otherwise we are leaking resources.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-i2c.c