[PATCH v4 0/1] clkdev: prevent potential memory leak when used in modules

2015-05-06 Thread Andy Shevchenko
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. The patch changes the prototype of the clk_register_clkdev() to return a pointer to the allocated resources. The caller

[PATCH v4 0/1] clkdev: prevent potential memory leak when used in modules

2015-05-06 Thread Andy Shevchenko
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. The patch changes the prototype of the clk_register_clkdev() to return a pointer to the allocated resources. The caller