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: 9578241 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 C47F360209 for ; Thu, 16 Feb 2017 19:43:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B90C22866A for ; Thu, 16 Feb 2017 19:43:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE09A2866D; Thu, 16 Feb 2017 19:43:13 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 37CAA2866A for ; Thu, 16 Feb 2017 19:43:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933121AbdBPTnM (ORCPT ); Thu, 16 Feb 2017 14:43:12 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:35569 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933224AbdBPTnL (ORCPT ); Thu, 16 Feb 2017 14:43:11 -0500 Received: by mail-wr0-f194.google.com with SMTP id q39so3231044wrb.2 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=DsMxALfh+ZzK4w/nCwpgcOXNrt+tBX+d7OLasNPokBs4S92RYIdEL8JMqgPzOTKi/f Py1uzBY9g7km34wwEdeP4oDHBNp9zsCCwAijY5mPRV5jcfEPQmaqOW7TGYOq0NNElPCz ppL/PmMuSsozGfqnwpWAIoiX5/ImLzLXr4ywyQ4gUkCQ6OrCcZCzHJFyBJQ5OWUuHQGK 0AnkH9Vr7jWdRlM4DhbHHhPRwN/Zp9MedOmN8bmmiOV87KoRO4c6lWDpzhJhQloXu3NI 9hCo/TrzauBesh5TMSVzaNW8xITdiYCZETgdgjhHjPe522YWmKoNlebPFpPC0htrqx58 MxKg== X-Gm-Message-State: AMke39nKPs1uzo9VrrmTO8Dlg0dNGgJ3H+hOv6OZbXkHbMC965TXyKJWGdpGIh3XxAsJRw== 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> Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org 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> 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 --- 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);