]> git.baikalelectronics.ru Git - kernel.git/commit
sh: ap325 camera without i2c driver fix
authorMagnus Damm <damm@igel.co.jp>
Wed, 20 May 2009 14:30:06 +0000 (14:30 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 22 May 2009 04:19:11 +0000 (13:19 +0900)
commitb6b368b4b61294979075eff3a66bffbb0747749b
treeeb7ae599e4fd98008651070cb2847a1a7c896a19
parent07f13de903ad3ee99aed862ec4a933a7681e7fcb
sh: ap325 camera without i2c driver fix

This patch fixes the ap325rxa ncm03j camera code to handle
the case where no i2c driver is present. Without this fix
i2c_transfer() may be passed NULL as adapter which results
in a crash.

Triggered when i2c-sh_mobile.c failed to probe() due to
missing MSTP clocks.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/board-ap325rxa.c