From patchwork Sat Feb 18 13:20:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9581087 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 3EE5160586 for ; Sat, 18 Feb 2017 13:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E8D6283EC for ; Sat, 18 Feb 2017 13:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 233C5283F3; Sat, 18 Feb 2017 13:27:21 +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 C5EB5283EC for ; Sat, 18 Feb 2017 13:27:20 +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:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X2LJ75UqvsBi+mC6IgRq/ZHFTAb5vyHVzAXN1s+PWro=; b=EPjMhzKQgxc1bh v17KOhmwkDcqNDp/Q/0o2Bz+l/gMgn05RPZL9L8UnQGkbTcWKPGlch5m07KhE8v+h3FLYCZpC3gzQ wYNBOmrIw/wyNuWlAxkH2O5jPtIzNu1YNG7pYZ9V/mPNwLLn0K0lGsQ6WRxePm93a4LBp8L5ZpZiY QAAIPJ8lq/fJqCo4R+0H1QmhKvpQp8QEKFeH12g4wRpm+EKymt7uqD1nSp3zL7SKSmZgtTHKypKV2 qUyqzdPwRbHJhoxI8cC8LRtZNk7td0ZUwDOQpSJj2jWnEBv81xJjj+ZDAliZuQOCpDUdC20OEXN0Y K7LaYjEa1UTYB035Q5uA==; 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 1cf52h-0001EA-0d; Sat, 18 Feb 2017 13:27:15 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cf52U-0000th-S6 for linux-amlogic@lists.infradead.org; Sat, 18 Feb 2017 13:27:08 +0000 Received: by mail-wr0-x243.google.com with SMTP id 89so1089745wrr.1 for ; Sat, 18 Feb 2017 05:26:42 -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=MmGFjk0AwIWI7ZoZvgwyInidSfax268u+vKUNbyKym8=; b=P/lYSQ6EM7gFjQin1GJz8JptZVTxOp6TvX4RCOuX42eJLDrbfMuuqnkD7ZFVVmReKK D9Qic5+zeA9ebBNQm1Kksy6CQ9VYpTEW0e6WODtA+A4qZRs2LxxjcVGq4Rgr25NNDH49 PwXwTRlEDd7Gx427udxxmwA1QKfePE3RSy8C9iP2X95lYfyVtpbN2b8vgh4KYdAqj3zx pkE11avJ8nThrxU6Bgub8usBcNgHV8glTSj9EPVhqIONzfc5fHrGvOjPy2wIS6OrjZ/b C0GocjF4xRfcAi0g1m3oGF7qQ1SefhitkCRXypnQr/gQ+JVzFRUYVw7bPc75NEzS3lqj GnSw== 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=MmGFjk0AwIWI7ZoZvgwyInidSfax268u+vKUNbyKym8=; b=kWAG3I6eiQnvwe+OVCZewGriAIhtR9/3wUP1EfX067i0BEk5Q0vZ47PnBHk97WVUcK Jg0uuqfSzwOi+sftLghHcA2xA24CaRZ5Fp1m7DVKuFGapXoJ+zbF92kmorjs+SqDprdU PitDtKPApafco2gULvMSouKU6A69+R6jo7CMM9gLfK9A9WLKBZyAAgxxmeWUAVz9a5xr 7y6gsZj+iw0f9Mt9ExtMcuKlefCr47SrAcstswmDNLd9qb9k5/Eqlxve9KECGOWF/BB7 NwwI2cfaruA8vHKHkMnSD1UPJGrWwF5Kmhpgfrti3wczy9m4VkMv/1C1VgqSXw0aRbDJ VNew== X-Gm-Message-State: AMke39msnZF69mCeTvuD6UFa3xcs1p1dLlKqy8CiKm3HN22oIczuevXm4NBGYNnFGmKRsQ== X-Received: by 10.223.161.222 with SMTP id v30mr10794381wrv.114.1487424400594; Sat, 18 Feb 2017 05:26:40 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:7c19:f774:dabe:f95d? (p200300C6EBDC40007C19F774DABEF95D.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:7c19:f774:dabe:f95d]) by smtp.googlemail.com with ESMTPSA id 10sm16953106wrw.13.2017.02.18.05.26.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Feb 2017 05:26:40 -0800 (PST) Subject: [PATCH v3 7/10] mmc: meson-gx: remove unneeded devm_kstrdup in meson_mmc_clk_init To: Ulf Hansson , Kevin Hilman References: <583f6496-68a9-b8e1-6b25-1f073f819a3c@gmail.com> From: Heiner Kallweit Message-ID: Date: Sat, 18 Feb 2017 14:20:44 +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: <583f6496-68a9-b8e1-6b25-1f073f819a3c@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170218_052703_136086_920B54DD X-CRM114-Status: UNSURE ( 6.67 ) 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 v3: - 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);