iio: adc: stm32-dfsdm: missing error case during probe
authorFabien Dessenne <fabien.dessenne@st.com>
Wed, 24 Apr 2019 12:51:26 +0000 (14:51 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Apr 2019 13:09:28 +0000 (14:09 +0100)
commitd2fc0156963cae8f1eec8e2dd645fbbf1e1c1c8e
tree7333f718df99524d2f98653babb8a70379c1ce69
parent3e53ef91f826957dec013c47707ffc1bb42b42d7
iio: adc: stm32-dfsdm: missing error case during probe

During probe, check the devm_ioremap_resource() error value.
Also return the devm_clk_get() error value instead of -EINVAL.

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-dfsdm-core.c