]> git.baikalelectronics.ru Git - uboot.git/commit
timer: nomadik-mtu: Use dev_read_addr_ptr()
authorStephan Gerhold <stephan@gerhold.net>
Fri, 2 Jul 2021 16:00:13 +0000 (18:00 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Jul 2021 20:47:57 +0000 (16:47 -0400)
commit89b56ce43fbdbafe57edbb7c2ffb696d9fd8e964
tree5d7d2e1b3b270dfc71cc857d75a3b198be6d7dad
parentb9d777a994cc5ef81f17095682b3222da31fbf63
timer: nomadik-mtu: Use dev_read_addr_ptr()

Simplify the code a bit by using dev_read_addr_ptr() instead of
dev_read_addr(). This avoids having to cast explicitly to the
struct nomadik_mtu_regs.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/timer/nomadik-mtu-timer.c