From patchwork Tue Aug 29 12:37:55 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: 9927265 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 6BEAC6022E for ; Tue, 29 Aug 2017 12:38:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6758728883 for ; Tue, 29 Aug 2017 12:38:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ACC3288D7; Tue, 29 Aug 2017 12:38:08 +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 574AD28883 for ; Tue, 29 Aug 2017 12:38:07 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 61805266DA4; Tue, 29 Aug 2017 14:38:05 +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 A4550266DB1; Tue, 29 Aug 2017 14:38:03 +0200 (CEST) Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.68]) by alsa0.perex.cz (Postfix) with ESMTP id 9373C266C6D for ; Tue, 29 Aug 2017 14:37:59 +0200 (CEST) Received: by mail-oi0-f68.google.com with SMTP id w10so2898822oie.1 for ; Tue, 29 Aug 2017 05:37:59 -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=Ol+YvaKulbt2NtIwVC8MPFXcoX3p1KyWIK8YCFRZk0k=; b=JquLga5fMwNBk0H6MavIL946vqZdRyqFqHAjYtKeM0pa4tKdie9S0C0XwYGG4cylW3 2+soDO1TBeyQHvXJ3LGI2V1Ea42BID92evxb0A1f8+jWHVZBqj74AUPLlqy7m6ukaqeI 3Ha/nK2JedFzhX2n1qya/uRYMP/F7htjpjmvySKOrW6Fr455WEwEoO8z+tpPSxsYFCSp Cmr8K5qra4tFEG0q1GEpXVCVMhrR7jK9IS33TyWlo1O+2WaE5tHw9cTI6zawW/MPfh/K dvrgxL75Zs9WXzA9kk9YdJpFdFySpbhBwckbpQ3zhoFZSBjmGWmkMpIQz89uIR80Iq6/ o0wg== X-Gm-Message-State: AHYfb5jiPs8kBqsim5EqaPsba1SZN3nlQGLAhXI55iXsNn1wGCVEmRd7 kn7NKqZakG218g== X-Received: by 10.202.114.199 with SMTP id p190mr187166oic.154.1504010278258; Tue, 29 Aug 2017 05:37:58 -0700 (PDT) Received: from localhost.localdomain (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id z124sm2583399oia.23.2017.08.29.05.37.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Aug 2017 05:37:57 -0700 (PDT) From: Rob Herring To: Mark Brown Date: Tue, 29 Aug 2017 07:37:55 -0500 Message-Id: <20170829123755.9496-1-robh@kernel.org> X-Mailer: git-send-email 2.11.0 Cc: alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , Takashi Iwai , Liam Girdwood , Nicolin Chen , Fabio Estevam , linuxppc-dev@lists.ozlabs.org Subject: [alsa-devel] [PATCH v3] ASoC: 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 Reviewed-by: Fabio Estevam --- v3: - Update subject: s/sound/ASoC/ 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 c17359648915..0c11f434a374 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,13 +902,12 @@ 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) { 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;