]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: Max9611: checking for ERR_PTR instead of NULL in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Apr 2017 10:26:18 +0000 (13:26 +0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 26 Apr 2017 06:24:48 +0000 (07:24 +0100)
commite72f3c6798720f831635a4233b3ea83f74a71992
treee5bf52d2495c28e01b61642ba1ccff0cf740f6e0
parent6d5120651bb915a6feaedfa982f2d4ad2a5e0d99
iio: adc: Max9611: checking for ERR_PTR instead of NULL in probe

devm_iio_device_alloc() doesn't return ERR_PTRs, it returns NULLs.

Fixes: 21aaaecef4f4 ("iio: adc: Add Maxim max9611 ADC driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/max9611.c