Re: [PATCH 5.10.y-cip 05/24] clk: renesas: Add CPG core wrapper for RZ/G2L SoC
Lad Prabhakar
Hi Pavel,
toggle quoted message
Show quoted text
Thank you for the review. -----Original Message-----The later patches do return ERR_PTR(-ENOMEM); Will fix that upstream.+static struct clk... Agreed will fix that upstream and backport later. Yes devm_kfree(NULL) is OK see [0]+static void __init... Agreed.+static bool rzg2l_cpg_is_pm_clk(const struct of_phandle_args"return clkspec->args[0] == CPG_MOD" would be simpler way to say this. Agreed.+static int __init rzg2l_cpg_probe(struct platform_device *pdev) {...+ error = rzg2l_cpg_reset_controller_register(priv);You can just return error unconditionally. Agreed.+static const struct of_device_id rzg2l_cpg_match[] = {It matches nothing? Aha, id is added in next patch. [0] https://elixir.bootlin.com/linux/v5.16-rc5/source/drivers/base/devres.c#L1053 Cheers, Prabhakar Best regards, |
|