From patchwork Wed Aug 23 12:20:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Donglin Peng X-Patchwork-Id: 9917273 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 CCFD260327 for ; Wed, 23 Aug 2017 12:20:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEC1B27853 for ; Wed, 23 Aug 2017 12:20:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3A40286D5; Wed, 23 Aug 2017 12:20:29 +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 67AE227853 for ; Wed, 23 Aug 2017 12:20:28 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 38D9C267727; Wed, 23 Aug 2017 14:20:27 +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 A786E267721; Wed, 23 Aug 2017 14:20:25 +0200 (CEST) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by alsa0.perex.cz (Postfix) with ESMTP id 12CC8267720 for ; Wed, 23 Aug 2017 14:20:12 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id c15so1319377pfm.3 for ; Wed, 23 Aug 2017 05:20:12 -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=OIMiv7zJvsWPfMRTPcJEgyCrUCoavgki13r9ziL+zM0=; b=H+LpK3RJgIIB2ugW2vsHd6/aAzhOS70j645MM4wXPGsdEtGPUm6dqcmwTimo2BXOeJ ndFj8uJTJo2MwOUDs0Vvh+I3v/VKQULWODmPZMSxWvRV3ryXKJ0JFybqIXotPI9gbdUB hxqnMzLzlJyak0WMwW/zYSfOCfFgkdhU3YZqVOHm9NnRZb8TbEDvE5gHcIiigJ8m5m1M qmlfSCIy60DSKyRtVLV8dqkUiL7ZDIURhQ+srtn0Q3rvSQWiNGQYLmg5L+Xig6ZuSPJJ 9721fqQ7KnZjW3H8rWTBdosyh3TUf67rsX4ANCRw3h7f8OsYelkn5qdqR7sHDQShzvHm +4Ow== 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=OIMiv7zJvsWPfMRTPcJEgyCrUCoavgki13r9ziL+zM0=; b=jQ72PPSv8NT5eMjp74L9mfA6ER7Dg2YC2jZYaoKxgG4VyjCLrsp/j8iqEXhAAY0lSd hHjQKjWQ2VKqBZJP/uAzF4/+tf+0FnXREnULBwiFaQGL8bss4yK3P+aCeK+hC4velFjm fUgHotBrZDYp5+8Tvh/6t2buENZw0LX6OKPqV2pnrkUcgD04Z519iammk783oZk+KhsS uPi14eDdZZRkBtNNh7ZoE8QfhdvJZDGyNKNYIeNN+skU6c0YhTEaqu8/8ttHLmgCALNF k0rFa3oTTPoqtGbcmizHQWBP1aoe+OjSGw0Cdl9X22VEvMppJdPSxFuxFF9ZYQIc69k3 4nOA== X-Gm-Message-State: AHYfb5iE507GVNZ8yqL5PYvLWIT97TzKvYr6kNlR2425iUu9ON/qeUvB lOO72MpyflBhOg== X-Received: by 10.84.215.2 with SMTP id k2mr2807592pli.416.1503490811851; Wed, 23 Aug 2017 05:20:11 -0700 (PDT) Received: from localhost ([45.41.135.42]) by smtp.gmail.com with ESMTPSA id s22sm3346605pfd.85.2017.08.23.05.20.10 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:20:11 -0700 (PDT) From: Peng Donglin To: heiko@sntech.de Date: Wed, 23 Aug 2017 05:20:06 -0700 Message-Id: <3ec36b8e2a98a6080bdbbc800aa190000acae104.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, linux-rockchip@lists.infradead.org, broonie@kernel.org Subject: [alsa-devel] [PATCH v2 05/10] ASoC: rockchip: 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/rockchip/rk3288_hdmi_analog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sound/soc/rockchip/rk3288_hdmi_analog.c b/sound/soc/rockchip/rk3288_hdmi_analog.c index dbc53e48c52c..cf5bbd8b6ebc 100644 --- a/sound/soc/rockchip/rk3288_hdmi_analog.c +++ b/sound/soc/rockchip/rk3288_hdmi_analog.c @@ -266,13 +266,9 @@ static int snd_rk_mc_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret == -EPROBE_DEFER) return -EPROBE_DEFER; - if (ret) { + if (ret) dev_err(&pdev->dev, "Soc register card failed %d\n", ret); - return ret; - } - - platform_set_drvdata(pdev, card); return ret; }