aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/at91/at91rm9200.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2020-05-05 00:37:56 +0200
committerStephen Boyd <sboyd@kernel.org>2020-05-26 20:22:34 -0700
commit7425f246f725e51c8a64802851303d1e2c25abd1 (patch)
treee7cbc9cb371f6c9141a07ae45e0f5172bb5a1a25 /drivers/clk/at91/at91rm9200.c
parentclk: at91: pmc: decrement node's refcount (diff)
downloadwireguard-linux-7425f246f725e51c8a64802851303d1e2c25abd1.tar.xz
wireguard-linux-7425f246f725e51c8a64802851303d1e2c25abd1.zip
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>
Diffstat (limited to 'drivers/clk/at91/at91rm9200.c')
-rw-r--r--drivers/clk/at91/at91rm9200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/at91/at91rm9200.c b/drivers/clk/at91/at91rm9200.c
index c44a431b6c97..6f4e1151553d 100644
--- a/drivers/clk/at91/at91rm9200.c
+++ b/drivers/clk/at91/at91rm9200.c
@@ -187,7 +187,7 @@ static void __init at91rm9200_pmc_setup(struct device_node *np)
return;
err_free:
- pmc_data_free(at91rm9200_pmc);
+ kfree(at91rm9200_pmc);
}
/*
* While the TCB can be used as the clocksource, the system timer is most likely