From: Heiner Kallweit Date: Sat, 4 Mar 2017 12:26:24 +0000 (+0100) Subject: mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b9ebad38fe64644714826966c9a164d90d1c408;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Heiner Kallweit Acked-by: Kevin Hilman Tested-by: Kevin Hilman Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 002e4aac7ca9..684cc08813ac 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -281,7 +281,7 @@ static int meson_mmc_clk_init(struct meson_host *host) /* create the divider */ 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.flags = CLK_SET_RATE_PARENT; clk_div_parents[0] = __clk_get_name(host->mux_clk);