On Thu, 26 Jan 2012, Mark Brown wrote:
On Tue, Jan 24, 2012 at 09:45:26PM +0100, Julia Lawall wrote:
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function.
This is a really nice cleanup - I tried to apply it but unfortunately it needs a rebase due to the change to use clk_prepare()/clk_unprepare() which went in recently. Could you rebase against current -next please?
Could you tell me in more detail what the problem is? I pulled linux-next and regenerated the patch, but got exactly the same thing as before. I do see some calls to clk_prepare_enable in the code.
thanks, julia