iio: adc: stm32-dfsdm: Use devm_platform_get_and_ioremap_resource()
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Fri, 18 Sep 2020 08:31:42 +0000 (16:31 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 29 Sep 2020 16:27:06 +0000 (17:27 +0100)
commit57e5b8bfd633b9237f0072ef8faeef9545a61ea1
tree7013bcec7297916f5f9cc3901dc4a923c072eb9f
parentcbc4ca3525777f3934bd5684e8ec908135dcbcd4
iio: adc: stm32-dfsdm: Use devm_platform_get_and_ioremap_resource()

Make use of devm_platform_get_and_ioremap_resource() provided by
driver core platform instead of duplicated analogue, dev_err() is
removed because it has been done in devm_ioremap_resource().

Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Link: https://lore.kernel.org/r/20200918083142.32816-1-bobo.shaobowang@huawei.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-dfsdm-core.c