iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
commit3a8fc4fad97d3b997388d14f899a55531773b3ab
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 16 Apr 2019 23:49:27 +0000 (16 16:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2019 05:49:54 +0000 (11 07:49 +0200)
treeca6b28e678677019267bd04275aa494805c55ff9
parent1b1dbf70684b1c0d047e6ca846564845991f9915
iio: adc: qcom-spmi-adc5: Fix of-based module autoloading

commit 447ccb4e0834a9f9f0dd5643e421c7f1a1649e6a upstream.

The of_device_id table needs to be registered as module alias in order
for automatic module loading to pick the kernel module based on the
DeviceTree compatible. So add MODULE_DEVICE_TABLE() to make this happen.

Fixes: e13d757279bb ("iio: adc: Add QCOM SPMI PMIC5 ADC driver")
Cc: stable@vger.kernel.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/qcom-spmi-adc5.c