From: Magnus Damm Date: Wed, 20 May 2009 14:30:06 +0000 (+0000) Subject: sh: ap325 camera without i2c driver fix X-Git-Tag: v2.6.30-rc7~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37869fa2da1a952ed736858f8b9e45c0b9131ae9;p=pandora-kernel.git 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 Signed-off-by: Paul Mundt --- Reading git-diff-tree failed