diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-04-17 02:49:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-10 19:36:12 +0300 |
commit | 573a935bfb4fdd35fe8ca60170322c19ff0fe305 (patch) | |
tree | defcafe3e9c794882ec66686e7d377d312f69d29 /drivers | |
parent | 284af27884325c5260dbfd29672a46cc5bf0556c (diff) | |
download | linux-573a935bfb4fdd35fe8ca60170322c19ff0fe305.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/adc/qcom-spmi-adc5.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index 6a866cc187f7..21fdcde77883 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -664,6 +664,7 @@ static const struct of_device_id adc5_match_table[] = { }, { } }; +MODULE_DEVICE_TABLE(of, adc5_match_table); static int adc5_get_dt_data(struct adc5_chip *adc, struct device_node *node) { |