From patchwork Wed Aug 23 12:20:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9917279 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 30D5260327 for ; Wed, 23 Aug 2017 12:20:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 228D527853 for ; Wed, 23 Aug 2017 12:20:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15E1F286D5; Wed, 23 Aug 2017 12:20:57 +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 74C2D27853 for ; Wed, 23 Aug 2017 12:20:56 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4815326770F; Wed, 23 Aug 2017 14:20:55 +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 D44C12676FA; Wed, 23 Aug 2017 14:20:53 +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 08DEB267735 for ; Wed, 23 Aug 2017 14:20:37 +0200 (CEST) Received: by mail-pg0-f66.google.com with SMTP id y129so1361032pgy.3 for ; Wed, 23 Aug 2017 05:20:37 -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=V9WS2z05tz70cX6YKZLNbkPg3vi+wgd1ffRohBuJt0Y=; b=CyptDjU0yTxr1Nm8Ss0BrHQ+xF0Kx0q78HYKC94cmVs03e7WvuTLegbSb6uY/IcpSc TMPvF1IoeZ3xMBMsj6SBuWpZLfjzw64le+e72Q44i8hINqWXbnvZ1jLevrO+/zvBvoe3 i2M0pGNVX3D4Rj3qeqAxYke+6wyToyWGdGL0KiS8OBz7dyICuFKAH0gGO+siaJo6a22/ U6tJTcYOdWpDmZL29Ug+wLzgEu9cNd5bocO7nJB8e/Hgy0m/R9oIM2HbfFdRw/Rxsd4m uPECWW/WQk50KTbZNEhGLgppAjkypR2xCHh4U8AWldg2deGsUN3yeX214TXk7kUk+5yt W7jw== 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=V9WS2z05tz70cX6YKZLNbkPg3vi+wgd1ffRohBuJt0Y=; b=ubG8uPSKgGbZ7eaYxOoGTrEZ1f1zNasaQH9Jfhk4HVmWw3jAHIggkskrEVyHLjsEN3 pCST9rlrihLOukOiR1AX5ncfuX32rFzV7hJn3oD+uVu5KrxdzCNODP1lgbO6VwHoDsFM g4neIhHw6XmvzueXwfpm1jPs8MGd/BF87KmFrnLagrehUch9fjZT7bm4O6xtUEjgnZju PatfdpvMhCRam+r7ZY5li+z1Qgv23ZAcg1EGHbpYHFWBsx0Lvj8K7qCADjUbNGHcnzi0 QCrrxY0fFlN6YHA3V7CsiZGyJfp55JXAEPI5+k3QJtG/yEDqjcT+yMpSgU1xYJYvqamX BnwQ== X-Gm-Message-State: AHYfb5j86PMLUslgrr2oGZV/J6DiqLnISFLFFfvw5NvRJbpCTcE36UkQ mpSSkPChFbHFGjeyeyMAZg== X-Received: by 10.84.229.10 with SMTP id b10mr2802588plk.353.1503490835887; Wed, 23 Aug 2017 05:20:35 -0700 (PDT) Received: from localhost ([45.41.135.42]) by smtp.gmail.com with ESMTPSA id l2sm3378019pfe.168.2017.08.23.05.20.34 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:20:35 -0700 (PDT) From: Peng Donglin To: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Wed, 23 Aug 2017 05:20:30 -0700 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Cc: broonie@kernel.org, tiwai@suse.com, Peng Donglin Subject: [alsa-devel] [PATCH v2 06/10] ASoC: mxs-sgtl5000: 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/mxs/mxs-sgtl5000.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index a96276e77332..90ca6f9131a1 100644 --- a/sound/soc/mxs/mxs-sgtl5000.c +++ b/sound/soc/mxs/mxs-sgtl5000.c @@ -140,16 +140,13 @@ static int mxs_sgtl5000_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) { + if (ret) dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); - return ret; - } - return 0; + return ret; } static int mxs_sgtl5000_remove(struct platform_device *pdev)