提交 7b9ebad3 编写于 作者: H Heiner Kallweit 提交者: Ulf Hansson

mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init

CLK core does a deep copy of init.name, therefore it's fully ok to
provide a local variable.
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Acked-by: NKevin Hilman <khilman@baylibre.com>
Tested-by: NKevin Hilman <khilman@baylibre.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 cac3a478
...@@ -281,7 +281,7 @@ static int meson_mmc_clk_init(struct meson_host *host) ...@@ -281,7 +281,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
/* create the divider */ /* create the divider */
snprintf(clk_name, sizeof(clk_name), "%s#div", dev_name(host->dev)); snprintf(clk_name, sizeof(clk_name), "%s#div", dev_name(host->dev));
init.name = devm_kstrdup(host->dev, clk_name, GFP_KERNEL); init.name = clk_name;
init.ops = &clk_divider_ops; init.ops = &clk_divider_ops;
init.flags = CLK_SET_RATE_PARENT; init.flags = CLK_SET_RATE_PARENT;
clk_div_parents[0] = __clk_get_name(host->mux_clk); clk_div_parents[0] = __clk_get_name(host->mux_clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册