From patchwork Wed Aug 23 12:20:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9917285 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 119BD60327 for ; Wed, 23 Aug 2017 12:21:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0407127853 for ; Wed, 23 Aug 2017 12:21:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED12B286D5; Wed, 23 Aug 2017 12:21:21 +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 3903927853 for ; Wed, 23 Aug 2017 12:21:21 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0E295267701; Wed, 23 Aug 2017 14:21:20 +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 E9152267701; Wed, 23 Aug 2017 14:21:18 +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 CE47A267718 for ; Wed, 23 Aug 2017 14:20:54 +0200 (CEST) Received: by mail-pg0-f66.google.com with SMTP id 83so1357694pgb.4 for ; Wed, 23 Aug 2017 05:20:54 -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=6qPcEdJ61xwLwatKmEXDpEe2MP0DaLsEOf0p+2SUQms=; b=JgJkpJgqa0vIKc3H0lVuVwtORCRy4CG6sOqkx67BRDPelyCulIyTIXahkPgp3Wh+VJ YhXnZaYzqvQDaMxjmTDhyafNL0Y89MStA2WqyBdB+70C5ASMiEaW9F4Q0MzbPb4H+44/ UeDIOGGTt/FCrXPMqBb4eJNcoFMBBRP9XyMrV3wYF9+Ws55hHfhhNvqxSlkOQzz3vxyU 3gAWEE4tEvmm0R8+QgNOlLOHfBmaAmeafW3L/0OTTgTACDuGjyFASaJHKM+TBWqdAhtO ubbH2C8IdCjaEQnnBQW2vWnC35pwrex0L3EzR39YBVtHo4TJdlMnOOTqFoThR1yRg3av FMgQ== 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=6qPcEdJ61xwLwatKmEXDpEe2MP0DaLsEOf0p+2SUQms=; b=fIM9j0vSkXmDykpp+setBJr+g9KoPIsuYvWBPpDxNdXr1JHpWQhfi+QihqRyxqgMQL u5OywNAX9j9QOqlGY53WsCkkLMDQUoQ6xAxtiGWF58RLGeD/c1R+4UycFQaxTp/p9SIW PbWNRg4qgounktlyLBrdHmZQeerNCft/wsfuLt5NYKsNmdOlAtplST5NsPewk90n+DfF NR7lvUAFlSUrhGAypWXcem185kWuGjsJbD2r/do+dNAcV5UsmhAPGtcCuC1rYpblFAz1 8kiZp4TgpToFbCIrk93JlPtMvHcxA0Yls7HFz1rLQla/4Khi37Yn4IHc42EGuhqY/4qo fZXg== X-Gm-Message-State: AHYfb5hgBT5K0d3qA+thVxhkzfKecsBbe6YxL6PhxzwcmAUqY6+0jSMz 7j0kT7Lr9j/c6w== X-Received: by 10.84.128.102 with SMTP id 93mr2747004pla.397.1503490853466; Wed, 23 Aug 2017 05:20:53 -0700 (PDT) Received: from localhost ([45.41.135.42]) by smtp.gmail.com with ESMTPSA id o25sm3097647pfj.117.2017.08.23.05.20.51 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:20:52 -0700 (PDT) From: Peng Donglin To: plai@codeaurora.org, bgoswami@codeaurora.org Date: Wed, 23 Aug 2017 05:20:48 -0700 Message-Id: <08cc7ae7dc7bd4a2697de8b03711a7310a582b69.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 07/10] ASoC: qcom: Remove useless 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. Acked-by: Banajit Goswami Signed-off-by: Peng Donglin --- sound/soc/qcom/apq8016_sbc.c | 1 - sound/soc/qcom/storm.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index d084d7468299..52925919267b 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c @@ -191,7 +191,6 @@ static int apq8016_sbc_platform_probe(struct platform_device *pdev) if (IS_ERR(data->spkr_iomux)) return PTR_ERR(data->spkr_iomux); - platform_set_drvdata(pdev, data); snd_soc_card_set_drvdata(card, data); return devm_snd_soc_register_card(&pdev->dev, card); diff --git a/sound/soc/qcom/storm.c b/sound/soc/qcom/storm.c index c5207af14104..a9fa972466ad 100644 --- a/sound/soc/qcom/storm.c +++ b/sound/soc/qcom/storm.c @@ -99,7 +99,6 @@ static int storm_platform_probe(struct platform_device *pdev) return -ENOMEM; card->dev = &pdev->dev; - platform_set_drvdata(pdev, card); ret = snd_soc_of_parse_card_name(card, "qcom,model"); if (ret) {