Skip to content

Commit

Permalink
iio: adc: stm32-dfsdm: fix compatible data use
Browse files Browse the repository at this point in the history
Fix use of compatible data: stm32h7 regmap configuration is statically
used. Rather use regmap_cfg from compatible data.

Fixes: bed7390 ("IIO: ADC: add stm32 DFSDM core support")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Fabrice Gasnier authored and Jonathan Cameron committed Feb 24, 2018
1 parent b91e146 commit 4e4f9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/adc/stm32-dfsdm-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ static int stm32_dfsdm_probe(struct platform_device *pdev)

dfsdm->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dfsdm",
dfsdm->base,
&stm32h7_dfsdm_regmap_cfg);
dev_data->regmap_cfg);
if (IS_ERR(dfsdm->regmap)) {
ret = PTR_ERR(dfsdm->regmap);
dev_err(&pdev->dev, "%s: Failed to allocate regmap: %d\n",
Expand Down

0 comments on commit 4e4f9fb

Please sign in to comment.