]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14a7a75765cb9320dfd83be284d56ad5b597602a
tree3ebbaf7ff9379c5c8e250dacaf3dffde07d8155b
parentd31b47a3d0489a741a6f112981ea1f706b633ce3
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: db4fc7863 ("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