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 X-Patchwork-Id: 108203 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp6480535qge; Tue, 18 Jul 2017 14:45:23 -0700 (PDT) X-Received: by 10.84.196.164 with SMTP id l33mr4019142pld.66.1500414323693; Tue, 18 Jul 2017 14:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500414323; cv=none; d=google.com; s=arc-20160816; b=kgYDeTajry9jnxyjaglUvnnS+huIoTJnXvwS2X1EkNN2DRzxbOFc7zgJo5ovdbPT6T FuKbsBdJzFIcRj7hShlseVC4CM2vfDmwazxetijjTAhZyb7lOmDZJEOKR5bilTlATHn7 Aod8mXdi6IotQ1EDNSTLVJdseFL7Y1ht6oe2+7A6b8P6ITnqQOIdZ6rPoQgRcoEAk/MZ bb3VpIGHxbwf+EbERohwGBxI22C4OxBdx9MEUrgtaEpiTl3Wj/XPb0MbTjkTHI7kU3Fr qj8WPaq0pChfTwfqDMw3arOoCdoffog3nC/b7Bibp+SEwVmKt2QReTuOxMGv2aZCy6iD QZdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JiJ0wW5PdiDnCb7qJTVil2ty45zmZkblCBKc+6dGw4g=; b=X53zrC98meYZNwgd+roPqv0dOdF59OXDS1wr5SVW8kaRy+dCAhG6a4CfNXHV3MpIcB 6NsL673aMAnD8HGgAh7h3yxAv0+LQ2zKfB+aEZNnBVE5gwwPaEIG0Lcv73uAmZXzrQp1 ICqPHnyt/QXnh6v8kveYQeoL2YcaAHj4ySz73CC4ZMSZWNAtYcbRdgfZ6TnBQMJIaaMB o5oXQOrcX8iQdf/zIUgxtUNwswwtBjQE9RjF33qkZSzrqzqC8YfZoitBBysann9fYcBr 9OEPE3vHihR71onlJHUEgagZluGpFXDXKuCjRTxb0+VtFYMQOkf8yfZn3LWH+3MNLtXq SCww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61si2698974plb.401.2017.07.18.14.45.23; Tue, 18 Jul 2017 14:45:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753107AbdGRVpU (ORCPT + 25 others); Tue, 18 Jul 2017 17:45:20 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33173 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753000AbdGRVpT (ORCPT ); Tue, 18 Jul 2017 17:45:19 -0400 Received: by mail-pg0-f68.google.com with SMTP id z1so4354247pgs.0; 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=BHJPhUZQS/Nl/YTtjM2Vgz585oKybnBrmvtdFsct18pWvBwPzPoXVZ+q6Y9Nggp0n8 S+388ENZHd7MqbrjsC1Ng8MrYytD8VnV2uF+UUbdNLiUzN5DKSAvgvZ2fDW9HyDJp137 z+HZN83PUyxfYQKpT+jLduCFji0CIwuyCtOmEWqYE/ywyQlwlyxNA05VnIoHftYx4aDn P98p9+6LixagMNaUMmsPSZS6dML+CyMTUZS1TEkJI6KOcqFvoCitySzq8C2fjWiu5zd4 IVwePwJgh85LZuBrgFIDxkCB9hRbr6DXzyQKD2kIrToljnEVNO+JixheUReBJjETCf1M 84RA== X-Gm-Message-State: AIVw110rglHBsDplrlta/CISTuy9/GZ38+Z2VowZENg/oQI1Um32epBD yIYLHvNU1i3Nf9itdk2mbg== 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 Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , Jaroslav Kysela , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] sound: fsl_dma: remove dma_object path member 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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;