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 X-Patchwork-Id: 111213 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp1270487qge; Tue, 29 Aug 2017 05:38:07 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4m5vLUu9dILlFRWOC10kWKr0aRcgFUs5rpOQIUhIZz6laQgvLTVZRC3/RUcVib2hhz+vTl X-Received: by 10.223.164.90 with SMTP id e26mr144433wra.62.1504010287550; Tue, 29 Aug 2017 05:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504010287; cv=none; d=google.com; s=arc-20160816; b=HyI/1+Adph8Wg6jWDY3y/0wZRx/6I8zPHxqmyAeOGU62qC58o6Wh+vPZJ/uoHb593S 6E/k4YxeljQCD0bR0uToxADQYK3kHcYWaOSrTpYU/TB2u8KxZZkPPN426zL8xMuBBp4x o8OsfIxLVV6npEPKooBkhorHwbYPIn3vFLeVvoAWd8HD5VhJmAFhVursTr5cD4z/S9V/ ua+xF+Se+tjBmQbbtkULrmLUxO4nQQ73EdCdmHfUiZeq8oEo9pxHmBDidtuvmzzQr1d5 oIBaNAmu/Snvl5tTGnYJn4x642AL4twF7zK6aYoPE/XsyIxvtls8+2DNpnRrS0peqHP/ ehbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from:delivered-to :arc-authentication-results; bh=QymeleweoF8NluCDZ3Os39wlfI6g7WbKoNoOgVCRcQ0=; b=B/mTiKW9RvP0Mt76a62K+z9kSyS8cZgHxyza+ApLRxRzwHpL/crlz28r2KI4uyiWWm LI8fgyQQ4hSBpymu0KYx5kERIqPrIeKTA1pvvZYkQtJAbw03w/iusXN+jgEZB8nEIufa BI/iHS5MvQMDBgaGaKJbwnX0Bv0iWgpurOmazfclm0AX3tvZO7nQJnlnetx2Pd/YvcJ+ H1TGM0NWRmitrO3tuW01lnZTDhTyFaB+E4qemxsWC0RouSoifFT0MNLA8iZvlc6c7ec1 2fekLd6eCpUVyHlW6bFJ/Va5qwyV/N74RMYrBTdVcV4SHCUvhQmD78OyTwkWNa/ZNWuI UBCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id d6si2247452wrb.501.2017.08.29.05.38.07; Tue, 29 Aug 2017 05:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 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 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 --- 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(-) -- 2.11.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel Reviewed-by: Fabio Estevam 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;