From patchwork Wed Aug 23 12:19:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9917269 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 07FAA60327 for ; Wed, 23 Aug 2017 12:19:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEA5A27853 for ; Wed, 23 Aug 2017 12:19:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3B60286D5; Wed, 23 Aug 2017 12:19: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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 3B94827853 for ; Wed, 23 Aug 2017 12:19:49 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 154E9267364; Wed, 23 Aug 2017 14:19:48 +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 AE65426735F; Wed, 23 Aug 2017 14:19:46 +0200 (CEST) Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by alsa0.perex.cz (Postfix) with ESMTP id E72C4267364 for ; Wed, 23 Aug 2017 14:19:43 +0200 (CEST) Received: by mail-pg0-f68.google.com with SMTP id m133so1361400pga.2 for ; Wed, 23 Aug 2017 05:19:43 -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=swmIVhLr1e+IUPA+5yY+//4V3nxciPf97rvNheCmi6s=; b=VSOXY7/iqz/bV3EIYkvi5MAO8HRf6CUe34rEq/4A3KCL2RAXGHBvf89QSCv3ZyoX1w H3yiDbaCwW43MuOZT2nUoCHgOtS3hEwOb/n6u9raf3nmfSIRAzA6HYAx9Ck/QRfPIMCH M4n8wviQHm9ENBZwUZsuePwQqY5RomyTG2AhWZmnPedokFVRvL1joORbVPXnj28FnCiT LHB9w6Dq/uGEIKb2kvdcLiJKj3suZyCtsvxyDJynTMTa2JiIwDHpx1/+4/VzgIymGWDQ S/A1VxqZD/IdfFh460J/M2BSWQsTm4QmrIhRRcHk/wH2zNblc7bXM/6drOo1oiB55KIj 8ESg== 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=swmIVhLr1e+IUPA+5yY+//4V3nxciPf97rvNheCmi6s=; b=b72mc6GJ/GLTXqUBJJVmFAJSEUek5evhWE3I1z5EHKgMG2bsK7ls5qTF8yPPf9CeH4 KhKgkS2sFZXwKSAL9y0oYlBHHlRIglkOg0Fg9L8jMx/MQ0GV4JF390zfS3ZA+lRPmAy5 YbIFCiJdLw+5AwxRwCdYvkTex/JERFJAvfU84i7AWiu18AvhR++SJspkmunKRXRxO2vo 7jjpYzLCWIe76syEH9/wnDnyuYehR1J7hqKS/JIFFlR52UtsobxWxcSFI4kPPoarZDC1 oR6QVE7EYcA10M96QbKySA4jlwKknGvnvjC8HxrQNaTn+lHCRr9Ntjf9mj1004MsNGGj ZV0A== X-Gm-Message-State: AHYfb5hdh1NNOzYvoRM1BTUwKilKSPfdVvDTmrSogXpSHBc5os55DWjW Vba8QaZYfamsxA== X-Received: by 10.84.132.78 with SMTP id 72mr2737260ple.66.1503490782776; Wed, 23 Aug 2017 05:19:42 -0700 (PDT) Received: from localhost ([45.41.135.42]) by smtp.gmail.com with ESMTPSA id y4sm3243650pfd.116.2017.08.23.05.19.41 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:19:42 -0700 (PDT) From: Peng Donglin To: nicolas.ferre@microchip.com Date: Wed, 23 Aug 2017 05:19:37 -0700 Message-Id: <50230f1a328ce13a82aafe24cd04c4bd3c1a5f7a.1503484313.git.dolinux.peng@gmail.com> 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 Subject: [alsa-devel] [PATCH v2 04/10] ASoC: atmel: 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/atmel/atmel-classd.c | 1 - sound/soc/atmel/atmel-pdmic.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index b7ef8c59b49a..0cd7caaed9c4 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -652,7 +652,6 @@ static int atmel_classd_probe(struct platform_device *pdev) } snd_soc_card_set_drvdata(card, dd); - platform_set_drvdata(pdev, card); ret = atmel_classd_asoc_card_init(dev, card); if (ret) { diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index c917df7715d1..8e3d34be9e69 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -694,7 +694,6 @@ static int atmel_pdmic_probe(struct platform_device *pdev) } snd_soc_card_set_drvdata(card, dd); - platform_set_drvdata(pdev, card); ret = atmel_pdmic_asoc_card_init(dev, card); if (ret) {