Lars-Peter Clausen 8477cedb49 jz4740-battery: Check if platform_data is supplied
Currently platform_data is dereferenced without checking whether it
is actually set, which can lead to kernel crashes.
This patch adds a check which will abort the drivers probe function
gracefully if no platform_data is supplied.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
2010-11-18 16:56:22 +03:00
..
2009-11-27 21:07:23 +01:00
2010-10-06 17:36:49 +04:00
2010-11-18 16:56:17 +03:00
2010-11-18 16:56:17 +03:00
2010-07-23 17:08:41 +04:00