From: Bjorn Andersson Date: Tue, 16 Apr 2019 23:49:27 +0000 (-0700) Subject: iio: adc: qcom-spmi-adc5: Fix of-based module autoloading X-Git-Tag: v5.4-rc1~1076^2~64^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=447ccb4e0834a9f9f0dd5643e421c7f1a1649e6a;p=platform%2Fkernel%2Flinux-rpi.git iio: adc: qcom-spmi-adc5: Fix of-based module autoloading 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index 6a866cc..21fdcde 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) {