rtc: ds1685: use devm_platform_ioremap_resource helper
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Fri, 11 Oct 2019 15:05:44 +0000 (17:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 14 Oct 2019 15:49:22 +0000 (17:49 +0200)
commitaf818031f4637b0e8d106fcc9023f1c22c44e13a
treed382e8ec5d5612a401e7dc6893405064bf788c12
parent9e420d7f125f51ab1eda37497b08c4fad9efe4a8
rtc: ds1685: use devm_platform_ioremap_resource helper

Simplify ioremapping of registers by using devm_platform_ioremap_resource.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Acked-by: Joshua Kinard <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20191011150546.9186-2-tbogendoerfer@suse.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1685.c
include/linux/rtc/ds1685.h