From patchwork Fri Mar 3 19:57:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9603429 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 7739860414 for ; Fri, 3 Mar 2017 20:00:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 693B328631 for ; Fri, 3 Mar 2017 20:00:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C5A128633; Fri, 3 Mar 2017 20:00:50 +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 C7B0128631 for ; Fri, 3 Mar 2017 20:00:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751989AbdCCUAt (ORCPT ); Fri, 3 Mar 2017 15:00:49 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35246 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751820AbdCCUAs (ORCPT ); Fri, 3 Mar 2017 15:00:48 -0500 Received: by mail-wm0-f67.google.com with SMTP id z63so2507076wmg.2 for ; Fri, 03 Mar 2017 12:00:47 -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=vT0GbYC2fBPyboH2p66QuOFLnJ8l96iL/R/q+vngLlw=; b=sV53eINMPB/WJFKQIzusZk3ODWuGnv54OomDHS6FnMh6Yrg8yPTDUoqmDryqfujZHC F6ptcZu8qL44A4pC+DrW8GL67me4bo9cPNAC8X7Oy9GGV0yCJGtrlkwt/BhilpaPsJe9 UHu3IV9xunelyzkLAbXLsad/Ogp1Ds8rDOz55pkzA07nAceHzMW4MApHFFmRmRylrCGw 5U0W1Ec2y/e5nKfe9QgolC6dki/eMJZDOx2cr3Kr5WIFprtO6MD10gUG6J/63jmtQwN2 6GkZGnVTZlWmBz2YyeCt73W5vUkgqf508U+DevAHUykEqfiQmkeT9eA/CRmREd+s+nWY FmdQ== 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=vT0GbYC2fBPyboH2p66QuOFLnJ8l96iL/R/q+vngLlw=; b=g6lxorYBBEUvvJl3zaD1Qq7DsurKL/bwit0J7cCyxVY8CqH8Q1WPgAuRQN4+a6toYG kJbazKVYyKe7HJsbW91na+rtCeKzDqXIkFrtEb0ZsQ3sc3gmFE6HGExNHSN+WbpHiuxc fxNoMrMK5v+MgNs6Zu4EjQihqKHEssM3Pwj3gW8DnfqaxXPRX+/mvbUFDKI9BPJb0k2o foyFrAuf0xbKJYIjlEjUFpU2ZaIYKXzJbcTCQ8G6UQQRzGVXB7+0SqNU7j2kWHba0WMk DIG1hWBcke9FKbbPjnzFND1/HbaKRwk8Bmv05uLQyy3flWHS34tr6EoZXQ/Tsy5FB9u/ qVnQ== X-Gm-Message-State: AMke39kS//2nfhUgRa0gjep0HICy/nA9FLuWu49zhwc+RxFxwdXuXuDfParjGDdND4FwYw== X-Received: by 10.28.151.142 with SMTP id z136mr4899617wmd.20.1488571247204; Fri, 03 Mar 2017 12:00:47 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:f903:fe11:afad:80a0? (p200300C6EBDC4000F903FE11AFAD80A0.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:f903:fe11:afad:80a0]) by smtp.googlemail.com with ESMTPSA id 32sm14615627wrr.64.2017.03.03.12.00.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 12:00:46 -0800 (PST) Subject: [PATCH v4 7/10] mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init To: Ulf Hansson , Kevin Hilman References: <62912f3d-2307-cfff-3c69-c8b8ffaeb474@gmail.com> Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org From: Heiner Kallweit Message-ID: Date: Fri, 3 Mar 2017 20:57:22 +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: <62912f3d-2307-cfff-3c69-c8b8ffaeb474@gmail.com> 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 --- 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);