clk: mediatek: Provide mtk_devm_alloc_clk_data
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Mon, 22 Aug 2022 15:26:50 +0000 (17:26 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 30 Sep 2022 22:07:43 +0000 (15:07 -0700)
commit50e68b99049ac6e850da025c0aa0a6ce23189234
tree7ca136e0a85ce310462cc53885b8fce388489eff
parentc61978175ac1337f028ac1f956666f16db84f4e5
clk: mediatek: Provide mtk_devm_alloc_clk_data

Provide a helper that replaces the kzalloc with devm_kzalloc so error
handling gets easier.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/r/20220822152652.3499972-3-msp@baylibre.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mtk.c
drivers/clk/mediatek/clk-mtk.h