Re: [PATCH v3 1/1] clkdev: change prototype of clk_register_clkdev()
From: Sylwester Nawrocki
Date: Fri Mar 27 2015 - 06:23:57 EST
Hello Andy,
On 20/03/15 14:18, Andy Shevchenko wrote:
> Since clk_register_clkdev() is exported for modules the caller should get a
> pointer to the allocated resources. Otherwise the memory leak is guaranteed on
> the ->remove() stage.
>
> Cc: Tomeu Vizoso <tomeu.vizoso@xxxxxxxxxxxxx>
> Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> arch/arm/mach-msm/clock-pcom.c | 9 +++++----
> arch/arm/mach-vexpress/spc.c | 5 ++++-
> arch/mips/ath79/clock.c | 6 +++---
> drivers/clk/clk-bcm2835.c | 12 +++++++-----
> drivers/clk/clk-max-gen.c | 9 ++++-----
> drivers/clk/clk-xgene.c | 6 +++---
> drivers/clk/clkdev.c | 15 ++++++++++-----
> drivers/clk/samsung/clk-pll.c | 15 +++++++++------
> drivers/clk/samsung/clk-s3c2410-dclk.c | 22 +++++++++++----------
> drivers/clk/samsung/clk.c | 35 +++++++++++++++++++---------------
> include/linux/clkdev.h | 2 +-
> 11 files changed, 78 insertions(+), 58 deletions(-)
I tested this on exynos, for clk/samsung
Acked-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx>
--
Thanks,
Sylwester
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/