From patchwork Tue Feb 14 20:07:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9572703 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 257E1601E7 for ; Tue, 14 Feb 2017 20:07:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2359C26E4D for ; Tue, 14 Feb 2017 20:07:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1707D2840E; Tue, 14 Feb 2017 20:07:58 +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 9D48726E4D for ; Tue, 14 Feb 2017 20:07:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753839AbdBNUH4 (ORCPT ); Tue, 14 Feb 2017 15:07:56 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36464 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754658AbdBNUHz (ORCPT ); Tue, 14 Feb 2017 15:07:55 -0500 Received: by mail-wr0-f195.google.com with SMTP id k90so28775719wrc.3 for ; Tue, 14 Feb 2017 12:07:54 -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=omWgbESGW9PSDqJohq38LB7pm/T0yemJzhGjLK553kA=; b=l5g/ZchZeDsAqPx474JQIOciBlqlevdYoPjxZJCr3q7WJCxfMOw/jn1eK06vvdnsG3 wXI9KP5FY2X0sbg/gpkZGdTfoqHbxFWNgOsvDF0x4uh1ArQnwda2Jt0EXCT8VkyDLeJR xuc7ji2wsN02X/e/oFUeqtWCAwmTZmE7FI590AiuqBMSWolz9BHnFssqBUkBuw/88u7Z vSvgf1w9HivQk5LLd3e2q7h42Jvmw++u9VvK9zqAaCnijSmn7JT5g/brZxIvDE9FlhfY tMmmSDpVHmXB6e/7SKPd7PuJpA+VtH84H9kF0EDLo0K9Y57pmXmRYsV4Ms3oxDzobhgE imcA== 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=omWgbESGW9PSDqJohq38LB7pm/T0yemJzhGjLK553kA=; b=KLqn5R6LgIYjWj9E6VWzrwyM+7SKqXDsuw9i3gx3dRMTcxiuD93FJ9+iWWzTYSc2po 7HEpNf4AiQgEABkg+CuJXvspY73hGJ+Z3OJny89nd44cvRIssN+CBszG4K46nT1E+O/a TQzxl1YIPh+fiHTYZxE9E0YN8r5c7/ssOdriA2vbhi4/DlQiTW4QYQJVvN1P2039ai/v 5nmnwQxB2hQJBSlM01+Qwl+VcdRr1+4Wy+/04YfavEsUkEotECIRDfm+qRaLJP3tadhU VVk4JK5gcWpl91kSJg7IPNknq9KKGUeK/7gXVLdoglQ2vqtTtZw5TFE/kV50P3kULsNg eJWA== X-Gm-Message-State: AMke39mE7MCMG7pdFDXX84LKCTycs7kupXyGsE2gWXI9jPaY1N6bcJIVNTovcM9Es3JJtw== X-Received: by 10.223.165.87 with SMTP id j23mr30818688wrb.79.1487102868718; Tue, 14 Feb 2017 12:07:48 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:9533:a20:55f1:fb4b? (p200300C6EBDC400095330A2055F1FB4B.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:9533:a20:55f1:fb4b]) by smtp.googlemail.com with ESMTPSA id x69sm4765496wma.15.2017.02.14.12.07.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 12:07:48 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 14/18] mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init To: Ulf Hansson , Kevin Hilman References: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@gmail.com> Cc: Carlo Caione , "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org Message-ID: <04781c15-b543-337c-d6d4-8378bd558cf7@gmail.com> Date: Tue, 14 Feb 2017 21:07:01 +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: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@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 MMC 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 --- 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 39904fb5..806554b1 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -276,7 +276,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);