ARM: OMAP: Release i2c_adapter after use (Siemens SX1)
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Feb 2008 19:03:41 +0000 (20:03 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 24 Feb 2008 19:03:41 +0000 (20:03 +0100)
commitc9a2c46d7f32a884510b20f0cfa79a2c6a2f1413
tree9379ceb746c5643083fc52e9fb26115b15b5a004
parent4fa2b1cde0e3797549f711ce9e51c395b3d6d2a7
ARM: OMAP: Release i2c_adapter after use (Siemens SX1)

Each call to i2c_get_adapter() must be followed by a call to
i2c_put_adapter() to release the grabbed reference. Otherwise the
reference count grows forever and the adapter can never be
unregistered.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Vladimir Ananiev <vovan888@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-sx1.c