From: Tomi Valkeinen Date: Mon, 15 Oct 2012 09:48:11 +0000 (+0300) Subject: OMAPDSS: DSI: fix dsi_get_dsidev_from_id() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~2^2^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78e7f256b207aba4bc0bcd9ba55e472dab87afc8;p=pandora-kernel.git OMAPDSS: DSI: fix dsi_get_dsidev_from_id() If dsi_get_dsidev_from_id() is called with a DSI module id that does not exist on the board, the function will crash as omap_dss_get_output() will return NULL. This happens on omap3 boards when dumping DSI clocks, as the dumping code will try to get the dsidev for DSI modules 0 and 1, but omap3 only has DSI module 0. Also clean up the id -> output mapping, so that if the function is called with invalid module ID it will return NULL. Signed-off-by: Tomi Valkeinen Cc: Archit Taneja --- Reading git-diff-tree failed