aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Moysan <[email protected]>2022-12-02 16:28:48 +0100
committerJonathan Cameron <[email protected]>2022-12-28 17:20:03 +0000
commitcc3304052a89ab6ac887ed9224420a27e3d354e1 (patch)
treed2e354d9023909e24c1695a3cc1c62f6326d2511
parent1b929c02afd37871d5afb9d498426f83432e71c2 (diff)
iio: adc: stm32-dfsdm: fill module aliases
When STM32 DFSDM driver is built as module, no modalias information is available. This prevents module to be loaded by udev. Add MODULE_DEVICE_TABLE() to fill module aliases. Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Olivier Moysan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r--drivers/iio/adc/stm32-dfsdm-adc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c
index 6d21ea84fa82..a428bdb567d5 100644
--- a/drivers/iio/adc/stm32-dfsdm-adc.c
+++ b/drivers/iio/adc/stm32-dfsdm-adc.c
@@ -1520,6 +1520,7 @@ static const struct of_device_id stm32_dfsdm_adc_match[] = {
},
{}
};
+MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match);
static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
{