iio: adc: at91-sama5d2_adc: fix probe error on missing trigger property
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 11 Oct 2017 11:21:14 +0000 (14:21 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Oct 2017 18:52:07 +0000 (19:52 +0100)
commitca4c302398963c0cae29bc168e44cf91e40ff0d3
tree3ebbaf7ff9379c5c8e250dacaf3dffde07d8155b
parent5151b4afb41dd7c5e13a130efcc95326a49da8c6
iio: adc: at91-sama5d2_adc: fix probe error on missing trigger property

This fix allows platforms to probe correctly even if the
trigger edge property is missing. The hardware trigger
will no longer be registered in the sybsystem
Preserves backwards compatibility with the support that
was in the driver before the hardware trigger.

https://storage.kernelci.org/mainline/master/v4.14-rc2-255-g74d83ec2b734/arm/sama5_defconfig/lab-free-electrons/boot-at91-sama5d2_xplained.txt

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Fixes: 5e1a1da0f ("iio: adc: at91-sama5d2_adc: add hw trigger and buffer support")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91-sama5d2_adc.c