From patchwork Sat Mar 4 12:26:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9603915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C18B4604E2 for ; Sat, 4 Mar 2017 12:39:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B12ED2843F for ; Sat, 4 Mar 2017 12:39:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CF75285A9; Sat, 4 Mar 2017 12:39:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AEE328497 for ; Sat, 4 Mar 2017 12:39:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbdCDMjC (ORCPT ); Sat, 4 Mar 2017 07:39:02 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34245 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751929AbdCDMi5 (ORCPT ); Sat, 4 Mar 2017 07:38:57 -0500 Received: by mail-wm0-f67.google.com with SMTP id m70so6820389wma.1 for ; Sat, 04 Mar 2017 04:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=IESkRR2LAzeVmNcCDiu9+nFIu0VootqLJpVknHPU8ck=; b=MV8bAOZIMZonmBOdzsS/sZ09kr2ke2hNgwrASmEaXPy0RE5FEMj4B79WgHOAqxq4XE fU7UgIMpcgidGX2mg1fhcYqbBnFx0KwTRodlJgYdbo3umDSYCDOj4n7BdA+whkTFIbUj TDsyjHqJZWkEUoMuck0uX/xPMRGXhjRpf9UtJD8fQSzmDg+UFgAeWbBKZ5nfwip5r+2E h1OB1SeASfqjtGb4hjETR8z2WLL2lYzc2Zh/w9chWrbZgDO4QsXPKVBkQID/D/ilO1Vg BSkL/q7xZidq3fS7OjD+Cfadn/Bbert7SE1mebrenH2TxBcNC485kiX1UOUhuWRbFb4C Mzzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IESkRR2LAzeVmNcCDiu9+nFIu0VootqLJpVknHPU8ck=; b=k7w3lYrAMFtu6iyORCtmVWG5Xg3cwbE8pcpQ+RcwZdnZwZa3OpyhnpaAlIqZht0arS atDDz3tJKjj6Y0Zf5xEKR4tgAzZq8+pXMLlHj27aTfq0MLADI5008lHHAQJ5YsQ4IE1N 5wA4/en2LsdRH7uRs687ESc9E/YJIWI5wsblBcnwq9V5hDF6zVW36tkbHlrmYMkvrLGY 25ecA9gJC1oF5e2sNYBddbRwPzgsRHVazTaNPQcHAE2rDRj8Moi2wxMEM8NAWdI8r5UQ 1C4k7xVrYUnTakxf9YW2H23HyiimpXVTg9ohkhxHkG0DTQ42Y8iQ3A9vyf6sKQiUvZJT /4yg== X-Gm-Message-State: AMke39m+6yp6g74gljnCHgXk2/85rJIfpGLgKpvypwnN659bz4xzZ2VAqQl3zCeW514X1Q== X-Received: by 10.28.158.87 with SMTP id h84mr6178015wme.4.1488631101563; Sat, 04 Mar 2017 04:38:21 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:98cd:c51c:6f4e:443? (p200300C6EBDC400098CDC51C6F4E0443.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:98cd:c51c:6f4e:443]) by smtp.googlemail.com with ESMTPSA id 73sm6923138wml.19.2017.03.04.04.38.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Mar 2017 04:38:21 -0800 (PST) Subject: [PATCH v5 7/10] mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init To: Ulf Hansson , Kevin Hilman References: Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org From: Heiner Kallweit Message-ID: Date: Sat, 4 Mar 2017 13:26:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- v2: - fixed commit message - added acked-by v3: - no changes v4: - no changes v5: - no changes --- drivers/mmc/host/meson-gx-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 002e4aac..684cc088 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);