From: Tomi Valkeinen Date: Thu, 23 May 2013 09:07:50 +0000 (+0300) Subject: OMAPDSS: Fix crash with DT boot X-Git-Tag: v3.10-rc4~5^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=591a0ac7f14aae6bf11b1cb6b5a68480bd644ddb;p=pandora-kernel.git OMAPDSS: Fix crash with DT boot When booting with DT, there's a crash when omapfb is probed. This is caused by the fact that omapdss+DT is not yet supported, and thus omapdss is not probed at all. On the other hand, omapfb is always probed. When omapfb tries to use omapdss, there's a NULL pointer dereference crash. The same error should most likely happen with omapdrm and omap_vout also. To fix this, add an "initialized" state to omapdss. When omapdss has been probed, it's marked as initialized. omapfb, omapdrm and omap_vout check this state when they are probed to see that omapdss is actually there. Signed-off-by: Tomi Valkeinen Tested-by: Peter Ujfalusi --- Reading git-diff-tree failed