]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-s3c2410: Fix bug in releasing driver
authorBen Dooks <ben-linux@fluff.org>
Tue, 1 May 2007 21:26:35 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:35 +0000 (23:26 +0200)
commite6de6a1f3cfbc5c123cc8b2d0ab0a80f33289436
tree89b5a557a665a124df3a0941d65de111231bba0b
parent390bc5124854792e83116b7e35bde13d964634ee
i2c-s3c2410: Fix bug in releasing driver

When compiled as a module, the i2c-s3c2410 driver does not
free either the IRQ or the i2c adapter it attached to the system.

As part of this fix, move to the usual kernel style
of freeing items as part of the probe error path
making the remove process easier.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-s3c2410.c