]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
iio: adc: qcom-spmi-adc5: Fix of-based module autoloading
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 16 Apr 2019 23:49:27 +0000 (16:49 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 22 Apr 2019 10:51:29 +0000 (11:51 +0100)
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>
drivers/iio/adc/qcom-spmi-adc5.c

index 6a866cc187f7d74b88c0be55ede852103b010164..21fdcde77883f8dd5b4fadf6b7a8e6794c9a9413 100644 (file)
@@ -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)
 {