Message ID | 20221202152848.45585-1-olivier.moysan@foss.st.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [v2] iio: adc: stm32-dfsdm: fill module aliases | expand |
On Fri, 2 Dec 2022 16:28:48 +0100 Olivier Moysan <olivier.moysan@foss.st.com> wrote: > 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 <olivier.moysan@foss.st.com> Applied to the fixes-togreg branch of iio.git. Note this will probably go upstream just after the merge window closes now. Thanks, Jonathan > --- > Changes in v2: Add Fixes tag > --- > drivers/iio/adc/stm32-dfsdm-adc.c | 1 + > 1 file changed, 1 insertion(+) > > 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) > {
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) {
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 <olivier.moysan@foss.st.com> --- Changes in v2: Add Fixes tag --- drivers/iio/adc/stm32-dfsdm-adc.c | 1 + 1 file changed, 1 insertion(+)