clk: at91: optimize pmc data allocation
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 4 May 2020 22:37:56 +0000 (00:37 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 03:22:34 +0000 (20:22 -0700)
commit7425f246f725e51c8a64802851303d1e2c25abd1
treee7cbc9cb371f6c9141a07ae45e0f5172bb5a1a25
parente218325ff9c31de191d4a617f8fddd3cf78b5550
clk: at91: optimize pmc data allocation

Alloc whole data structure in one block. This makes the code shorter,
more efficient and easier to extend in following patch.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Link: https://lkml.kernel.org/r/fc6f6d67b8cee0beace4a9d9cca7431e5efa769d.1588630999.git.mirq-linux@rere.qmqm.pl
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
12 files changed:
drivers/clk/at91/at91rm9200.c
drivers/clk/at91/at91sam9260.c
drivers/clk/at91/at91sam9g45.c
drivers/clk/at91/at91sam9n12.c
drivers/clk/at91/at91sam9rl.c
drivers/clk/at91/at91sam9x5.c
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h
drivers/clk/at91/sam9x60.c
drivers/clk/at91/sama5d2.c
drivers/clk/at91/sama5d3.c
drivers/clk/at91/sama5d4.c