Gustavo A. R. Silva 36d311bc16 iio: adc: rockchip_saradc: add NULL check on of_match_device() return value
Check return value from call to of_match_device()
in order to prevent a NULL pointer dereference.

In case of NULL print error message and return -ENODEV

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-07-09 19:09:50 +01:00
..
2017-07-09 18:17:18 +01:00
2017-07-09 18:17:18 +01:00
2017-07-04 20:50:04 +01:00
2017-07-09 18:17:18 +01:00