iio: adc: checking for NULL instead of IS_ERR() in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Mar 2014 08:33:00 +0000 (08:33 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 14 Jun 2014 15:16:43 +0000 (16:16 +0100)
commite94f62e79f7f63a68574ee5e76c19837ec12f3db
treea3bdd460676e2224f839bda6ce608c3f4e5e70e9
parent4f3bcd878f1d3c730fe00f619b7260c6125d49eb
iio: adc: checking for NULL instead of IS_ERR() in probe

mcb_request_mem() returns an ERR_PTR(), it doesn't return NULL.

Fixes: 74aeac4da66f ('iio: adc: Add MEN 16z188 ADC driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Stable@vger.kernel.org
drivers/iio/adc/men_z188_adc.c