]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mt2712: switch to devm_platform_ioremap_resource
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 15 Apr 2020 20:00:21 +0000 (22:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 18 Apr 2020 20:42:04 +0000 (22:42 +0200)
commit5c70972e9b60d54ebe24d9576b286dfcc0a41370
treefbc07dc837e5e7912c50527eabed2aa74f60a9a5
parent9c8e889a4e83b827b04bfb9c2772d9dd6f2972f8
rtc: mt2712: switch to devm_platform_ioremap_resource

Using devm_platform_ioremap_resource instead of open coding it reduces the
size of the binary.

   text    data     bss     dec     hex filename
   3728     216       0    3944     f68 drivers/rtc/rtc-mt2712.o
   3744     216       0    3960     f78 drivers/rtc/rtc-mt2712.o.old

Link: https://lore.kernel.org/r/20200415200021.157118-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mt2712.c