From: Sakari Ailus Date: Wed, 25 Mar 2015 22:57:29 +0000 (-0300) Subject: [media] omap3isp: Platform data could be NULL X-Git-Tag: omap-for-v4.1/fixes-rc1~72^2~1^2~261 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c8f14861cccb7b19cfd582e135847aa772f3854;p=pandora-kernel.git [media] omap3isp: Platform data could be NULL Only check for call platform data callback functions if there's platform data. Also take care of a few other cases where the NULL pdata pointer could have been accessed, and remove the check for NULL dev->platform_data pointer. Removing the check for NULL dev->platform_data isn't strictly needed by the DT support but there's no harm from that either: the device now can be used without sensors, for instance. Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed