From patchwork Wed Aug 23 12:18:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9917255 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 E00E460327 for ; Wed, 23 Aug 2017 12:18:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D21832869D for ; Wed, 23 Aug 2017 12:18:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6F2B286AA; Wed, 23 Aug 2017 12:18:49 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 0B7362869D for ; Wed, 23 Aug 2017 12:18:49 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CA1382672C2; Wed, 23 Aug 2017 14:18:47 +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 BB0F326735B; Wed, 23 Aug 2017 14:18:46 +0200 (CEST) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by alsa0.perex.cz (Postfix) with ESMTP id 091862664EB for ; Wed, 23 Aug 2017 14:18:44 +0200 (CEST) Received: by mail-pg0-f66.google.com with SMTP id t3so1355338pgt.5 for ; Wed, 23 Aug 2017 05:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/PGm3UfL06shYmjL8CCtd6ql2lYqeoGahe8xFkJjdEY=; b=iSC7HOhe5TT8XjXL0gBRQ5OWv2h2/j2RKGM8L3zrrn4Z80EteF+hV96npBybV/8nKc pdBaiBbQ9Rfin4s7+0wbS0VqaIyC8TMaYTVWbpXUBQITtMnqfDRlmL/ge8CMuPh87M/n Uqy98p9bVqV1cn3PaCuZ0p2hM0K7r7xCzZ8o8RsV7PdQnMf75nDZAQhfgEsBsWdqYX26 3ggkVxerSvYwuqaq2/2jK+sIYQceEPRr9yWMCcLQKsxIvs9PjUGmVtyygy4PkiPYN0j1 aHGRZpoZ6WJBCINE/Zx7EIdma/L9X1CHFkm46vH3zS88ZTFVbPdfWgykupO8YN2kBnSY nX9w== 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=/PGm3UfL06shYmjL8CCtd6ql2lYqeoGahe8xFkJjdEY=; b=S3GaQPe5ZXonigMzXSy9ma2OBjNdJjPextLMjDrC5QHIXAHNjkZDnnhRwkT46NuAXe ex0LUsdbvFAQYcb+GfJ3FZ28n4+U4Sz1D3/1ZBNLs4+sDdwPY/nyAmr/QcEHJmPBMuVS ZxFOPXdRg86xQN2fqCjQSzgKxDHNzaw6CNrMyECIrG8redeH2VZLiLlEmcpryXnvuT5R +kdya56rqxFJ25GjqrPUaNV9tp4Oq3xOWQ62wvGvBf53XttyuKTyIkKrEj+tyXh1D16A GIyJfesLB0xNepVVb84CVQoqI9cKV5OO+/V1RvGpK/0NoNOreaWlbwPg4CZEa6J9YHAk ZxKA== X-Gm-Message-State: AHYfb5hfZ6zd7sAM/5tS1r5BrSwy3axGzw6Mbb9DLMRxazGzsykOKrH5 2wbC0JEADQLHQg== X-Received: by 10.98.11.67 with SMTP id t64mr2660221pfi.82.1503490724119; Wed, 23 Aug 2017 05:18:44 -0700 (PDT) Received: from localhost ([45.41.135.42]) by smtp.gmail.com with ESMTPSA id s67sm2605288pgb.13.2017.08.23.05.18.42 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:18:43 -0700 (PDT) From: Peng Donglin To: matthias.bgg@gmail.com Date: Wed, 23 Aug 2017 05:18:38 -0700 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Peng Donglin , tiwai@suse.com, broonie@kernel.org, linux-mediatek@lists.infradead.org Subject: [alsa-devel] [PATCH v2 02/10] ASoC: mediatek: Remove unnecessary function call 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 The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c | 1 - sound/soc/mediatek/mt8173/mt8173-rt5650.c | 1 - 3 files changed, 3 deletions(-) diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c index 5e383eb456a4..99c15219dbc8 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c @@ -222,7 +222,6 @@ static int mt8173_rt5650_rt5514_dev_probe(struct platform_device *pdev) mt8173_rt5650_rt5514_codecs[1].of_node; card->dev = &pdev->dev; - platform_set_drvdata(pdev, card); ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c index fed1f15a39c2..42de84ca8c84 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c @@ -279,7 +279,6 @@ static int mt8173_rt5650_rt5676_dev_probe(struct platform_device *pdev) } card->dev = &pdev->dev; - platform_set_drvdata(pdev, card); ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650.c b/sound/soc/mediatek/mt8173/mt8173-rt5650.c index a78470839b65..e69c141d8ed4 100644 --- a/sound/soc/mediatek/mt8173/mt8173-rt5650.c +++ b/sound/soc/mediatek/mt8173/mt8173-rt5650.c @@ -311,7 +311,6 @@ static int mt8173_rt5650_dev_probe(struct platform_device *pdev) return -EINVAL; } card->dev = &pdev->dev; - platform_set_drvdata(pdev, card); ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret)