[PATCH] PCI: mvebu: Use devm_add_action_or_reset()
Jonathan Cameron
Jonathan.Cameron at huawei.com
Fri Jul 25 03:13:27 PDT 2025
On Fri, 25 Jul 2025 04:57:05 +0100
Salah Triki <salah.triki at gmail.com> wrote:
> On Thu, Jul 24, 2025 at 11:42:17AM -0500, Bjorn Helgaas wrote:
> > On Sat, Jul 19, 2025 at 05:34:40AM +0100, Salah Triki wrote:
> >
> > ret = devm_add_action_or_reset(dev, clk_put, port->clk)
> >
> The second argument of devm_add_action_or_reset() is of type void (*)(void *)
> and the argument of clk_put() is of type struct clk *, so I think a cast is
> needed:
>
> ret = devm_add_action_or_reset(dev, (void (*)(void *)) clk_put, port->clk)
Can you use devm_get_clk_from_child() here? If not add a similar variant.
>
> Best regards,
> Salah Triki
>
More information about the linux-arm-kernel
mailing list