Skip to content

Commit cc33040

Browse files
Olivier Moysanjic23
authored andcommitted
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: e2e6771 ("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]>
1 parent 1b929c0 commit cc33040

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/adc/stm32-dfsdm-adc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,7 @@ static const struct of_device_id stm32_dfsdm_adc_match[] = {
15201520
},
15211521
{}
15221522
};
1523+
MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match);
15231524

15241525
static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
15251526
{

0 commit comments

Comments
 (0)