summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/setup.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-07-01 11:33:23 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2014-09-03 10:55:44 +0200
commit64568d1dbd673aca3de8d2a17b9db507c5b85df7 (patch)
tree20c415ed7c7450c9d622e8817411ba49fcc4a69e /arch/arm/mach-at91/setup.c
parentARM: at91: PIT: use request_irq instead of setup_irq (diff)
downloadlinux-64568d1dbd673aca3de8d2a17b9db507c5b85df7.tar.xz
linux-64568d1dbd673aca3de8d2a17b9db507c5b85df7.zip
ARM: at91: PIT: (Almost) remove the global variables
The timer driver is using some global variables to define some variables it has to use in most of its functions, like the base address. Use some container_of calls to have a single dynamic (and local) variable to hold this content. The only exception is in the !DT case, where the call chain to at91sam926x_ioremap_pit and then at91sam926x_pit_init as init_time makes it hard for the moment to pass the physical address of the timer. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Boris BREZILLON <boris.brezillon@free-electrons.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/setup.c')
0 files changed, 0 insertions, 0 deletions