From patchwork Tue Jul 18 21:43:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 9849635 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 3731460393 for ; Tue, 18 Jul 2017 21:45:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22035285F7 for ; Tue, 18 Jul 2017 21:45:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10ABF28600; Tue, 18 Jul 2017 21:45:45 +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, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AD10285F7 for ; Tue, 18 Jul 2017 21:45:44 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4355F267256; Tue, 18 Jul 2017 23:45:27 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id BD9C7267256; Tue, 18 Jul 2017 23:45:25 +0200 (CEST) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id BB26B26724B for ; Tue, 18 Jul 2017 23:45:20 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id y129so4336570pgy.3 for ; Tue, 18 Jul 2017 14:45:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JiJ0wW5PdiDnCb7qJTVil2ty45zmZkblCBKc+6dGw4g=; b=L/ULVyXk8b+6CxZrhooQLPTe1QeWnTLuYsKIa+CQgaQqTitZTG/PAFkSwIX/0A217H 1qZkgCm1k/oU/xUf5d8rsuLW9QpdLtIeWmTPyYgCCbJLv4YT6klYwV2lVhY1dQAOxLFC 86f50i2BC9dMY/6SI97VOEprh1sJPQxI4Q6QfCO5f0rzsPbA83NSng6ch/r/ZvIlDG7r HKW/cQSJSiLl54JbmVdltZS7tXUnvGAiXbusqAdPgsLaRp3IXA8bFjW7trDscZyc7CeS Nuw+CRYb0WtmIyyOboJUVL8RjG5a4i9m8EclHStSJtaZrqn+fE+ZEaBgeHxQFoVCgYc4 z8zA== X-Gm-Message-State: AIVw110ExnI5ZOuf168jPShFuHafeZh4HL5v0AdpSsVE6u7NBFCRuwcS q8iSq9GEzFW9Yg== X-Received: by 10.84.131.71 with SMTP id 65mr3885222pld.35.1500414318951; Tue, 18 Jul 2017 14:45:18 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.45.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:45:18 -0700 (PDT) From: Rob Herring To: Takashi Iwai , Mark Brown Date: Tue, 18 Jul 2017 16:43:39 -0500 Message-Id: <20170718214339.7774-59-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Xiubo Li , Liam Girdwood , linux-kernel@vger.kernel.org, Timur Tabi , Nicolin Chen , Fabio Estevam , linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH] sound: fsl_dma: remove dma_object path member X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP dma_object.path is unused, so rather than fix it to work with DT full_name changes, just remove it. Signed-off-by: Rob Herring Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org --- sound/soc/fsl/fsl_dma.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.11.0 diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index ccadefceeff2..b38dd328c783 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c @@ -63,7 +63,6 @@ struct dma_object { struct ccsr_dma_channel __iomem *channel; unsigned int irq; bool assigned; - char path[1]; }; /* @@ -897,20 +896,19 @@ static int fsl_soc_dma_probe(struct platform_device *pdev) ret = of_address_to_resource(ssi_np, 0, &res); if (ret) { - dev_err(&pdev->dev, "could not determine resources for %s\n", - ssi_np->full_name); + dev_err(&pdev->dev, "could not determine resources for %pOF\n", + ssi_np); of_node_put(ssi_np); return ret; } - dma = kzalloc(sizeof(*dma) + strlen(np->full_name), GFP_KERNEL); + dma = kzalloc(sizeof(*dma), GFP_KERNEL); if (!dma) { dev_err(&pdev->dev, "could not allocate dma object\n"); of_node_put(ssi_np); return -ENOMEM; } - strcpy(dma->path, np->full_name); dma->dai.ops = &fsl_dma_ops; dma->dai.pcm_new = fsl_dma_new; dma->dai.pcm_free = fsl_dma_free_dma_buffers;