From patchwork Fri Jul 21 19:28:35 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: 9857541 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 3DA3160393 for ; Fri, 21 Jul 2017 19:29:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CCFC285EA for ; Fri, 21 Jul 2017 19:29:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B3712864F; Fri, 21 Jul 2017 19:29:25 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no 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 5EF76285EA for ; Fri, 21 Jul 2017 19:29:24 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id ECB1E266D16; Fri, 21 Jul 2017 21:29:04 +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 A1BAA266B1C; Fri, 21 Jul 2017 21:29:02 +0200 (CEST) Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by alsa0.perex.cz (Postfix) with ESMTP id 55045266AF9 for ; Fri, 21 Jul 2017 21:28:58 +0200 (CEST) Received: by mail-yw0-f194.google.com with SMTP id a7so266487ywi.0 for ; Fri, 21 Jul 2017 12:28:58 -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:in-reply-to :references; bh=Uv4oswlXKuwQ8GGCfWlgz+N+3Kg1PjzIniFFVv4wK2I=; b=Sp3Z0NdOVxBzDbK6hJuS87BS1WfqBTz4qoLrFISd0U5scr8WBJ3JWbSdZ6/kz7z5FL 20Epo4q/eiGgZBt9ZJkHQr75hX1PevEXJDehWe34yt+P3UzrJI9JSrx6/pNboY3BGZcJ +BaruDvTxzt3u7bLJHDQ+6cetMt6VPLO73cluwIsai+omSeD5y75aaA0knMbVbdFhg5x PWa9WQ6FfAle6z4nvAWcl0DUGJFlrXZvBkdH6wHR1umd7ahjrbzLWpIGgVf/WdQE3qKM C3+UM3/d5YbKLUJhhXI5iYyse++ihWFaMhHzUsmfxDlJhpiuR3GUDkzzCYMDy2wVjGVH k/oQ== X-Gm-Message-State: AIVw112gJqW2+XqggMyrPPe3heIao2YObVYaywCyU+1UlX5ehnkahWBd QIeOIiJcwZBZAg== X-Received: by 10.129.111.197 with SMTP id k188mr7391179ywc.381.1500665337923; Fri, 21 Jul 2017 12:28:57 -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 q11sm1929431ywj.78.2017.07.21.12.28.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jul 2017 12:28:57 -0700 (PDT) From: Rob Herring To: Takashi Iwai , Mark Brown Date: Fri, 21 Jul 2017 14:28:35 -0500 Message-Id: <20170721192835.25555-4-robh@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170721192835.25555-1-robh@kernel.org> References: <20170721192835.25555-1-robh@kernel.org> 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 v2] 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 --- v2: - Move printf specifier change to correct patch sound/soc/fsl/fsl_dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index ed8ea002902d..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]; }; /* @@ -903,14 +902,13 @@ static int fsl_soc_dma_probe(struct platform_device *pdev) 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;