Re: clk: davinci: Add NULL check in davinci_lpsc_clk_register()

From: David Lechner
Date: Wed Apr 02 2025 - 10:06:06 EST


On 4/2/25 2:48 AM, Markus Elfring wrote:

>
> Would you like to clarify any more why the function “kzalloc” is still called here
> (instead of the variant “devm_kzalloc”)?
> https://elixir.bootlin.com/linux/v6.14-rc6/source/drivers/clk/davinci/psc.c#L242

It is a case of "if it isn't broke, don't fix it". While there is room for
some small improvements like that, it does come at a cost of time and energy
to make those improvements.

>
> Regards,
> Markus