[media] adp1653: check platform_data before usage
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Jul 2011 14:16:41 +0000 (11:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Aug 2011 12:42:50 +0000 (09:42 -0300)
commit572064280ecc9dc89227cf3797bc2144896a34f5
treee1cb5154c5ddffe7d88f5a807a9b0e8e88460917
parent680417bb318adc5f1f8f392730776176fbcdedd8
[media] adp1653: check platform_data before usage

The driver requires platform_data to be present. That's why we need to check
and fail in case of the absence of necessary data.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/adp1653.c