From patchwork Thu Feb 16 19:42:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9578261 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 E053A60589 for ; Thu, 16 Feb 2017 19:43:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D495B2866B for ; Thu, 16 Feb 2017 19:43:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C71E72866E; Thu, 16 Feb 2017 19:43:53 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 50D302866E for ; Thu, 16 Feb 2017 19:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4+Z+DmAHDjh2WtlTONsUvsMEQRfZMOh9v1YzVqLPj/c=; b=NdP6lKJtRmttIc kYwOZO8qsb7/nLCpccjCLpLwGDZ0KBSwlNCA/v4JR+txHvchrYESrmcFmDS+7gtKUvVfnBtGAGvMI NiZ0W4VrMhkuKnGr+1/k9rL28dNRnqXWmJFFsUCiSt7+OBYE2WwaaOtGdlnFMfqiWu/dtQh/NZKrJ zWMHSsAC+aCa9u1ym9sPkO9BwpvIBvzKS3WUj8+l9wE5seeaGxAUB/MwxJKcRe60MhAFuM+HcCvmU ZPNqB95syw/u03HvffHj3uwoXB4s6GwpvnWMXaN7eXkEvb+Ex3ApmMMabu6cYlUpw1osVOYSJDzNk ONsA7QCCy5v+u9plQf9Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ceRxu-0006tw-Mc; Thu, 16 Feb 2017 19:43:42 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ceRxi-0006fw-EX for linux-amlogic@lists.infradead.org; Thu, 16 Feb 2017 19:43:37 +0000 Received: by mail-wr0-x241.google.com with SMTP id z61so2461675wrc.3 for ; Thu, 16 Feb 2017 11:43:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=UgjErWMj5wWhgwTSO9S2r8dAq/oaaG0muOmo0jTqSpg=; b=EfyAABgWbkBqGdWCKN4C+PcOhPfebl/8I59wBd5lYO4vSyL7QOVHYUZrTlhDb3CTIm 2DwvKanc60jo5IC8M6b8hfxF0nH9kl+W9lSPPwxfuNuSUP95DZy2CBQqHYErebqpSJjb hXruUt++/9jxwIFELeBvPWDv3Bzx9DHOVI1Ce9qsXMnGeJ4pgfXN7gQJCn8DAcFtQ3yL SU8KbAhlQzygDdRK9jtLSzEqrQOHpgNGfrt36aDvdQiExRXDTXbf3Dc0Cqn9Fvs17TQn jgYiXpRtfgo7M1Z6Eb7B2JuAJKrFL7pqYtm7WByxoQ6qesPonVM/YKs4ICHloOv2nsoO 9eDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=UgjErWMj5wWhgwTSO9S2r8dAq/oaaG0muOmo0jTqSpg=; b=EzIp/hkt3OxLKdBY5JVlvkeR/qwZ98EXjfyxfPu3YFMiVw1TkyRTwtXOevgYsJPwN0 iF80wEhzsQsVvHOnRaejwInBIAqjk+uFGY2ekfVdM7Oz0b9uyf9GxqcrEQ6YZmu+u0jW U7QxWYN8Y5kl12zX3xc6nf+6Sn4js1AhJjFmlKumfFmOHRvdj+RHDL4zBxyF72hdc5h1 vJaaL+m5MeYhWNTba74n0oIQA2mwBuQzTA+VrHm8DZM9UDnXkV7WZnykcu52HBjb7/PI JVQENqPesYYapEyIWp5lB6dEdSvn6ua/iHX4wN+cC2X+TVQt5+ZvY48j1A+Hq8D0bkZO 19tQ== X-Gm-Message-State: AMke39lvMfE34Vjih4pjgDTRScxmzj5JdBQnjjyhoK/QIMRbzAju5JEJwihgl7sUrjICPw== X-Received: by 10.223.164.66 with SMTP id e2mr3630187wra.47.1487274190488; Thu, 16 Feb 2017 11:43:10 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:f02a:ffb3:d41d:abac? (p200300C6EBDC4000F02AFFB3D41DABAC.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:f02a:ffb3:d41d:abac]) by smtp.googlemail.com with ESMTPSA id t202sm1450310wmt.28.2017.02.16.11.43.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 11:43:10 -0800 (PST) From: Heiner Kallweit Subject: [PATCH v2 7/9] mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init To: Ulf Hansson , Kevin Hilman References: <7d5263e2-9325-dedb-a5f6-954c4a09e977@gmail.com> Message-ID: Date: Thu, 16 Feb 2017 20:42:19 +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: <7d5263e2-9325-dedb-a5f6-954c4a09e977@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170216_114330_984362_2257F6BD X-CRM114-Status: UNSURE ( 6.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, "linux-mmc@vger.kernel.org" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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 --- 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 850b0152..a8f43cc6 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);