Message ID | 3ec36b8e2a98a6080bdbbc800aa190000acae104.1503484313.git.dolinux.peng@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org> 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 1C99A60327 for <patchwork-linux-rockchip@patchwork.kernel.org>; Wed, 23 Aug 2017 12:20:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E16127853 for <patchwork-linux-rockchip@patchwork.kernel.org>; Wed, 23 Aug 2017 12:20:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02A64286D5; Wed, 23 Aug 2017 12:20:50 +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=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DEB027853 for <patchwork-linux-rockchip@patchwork.kernel.org>; Wed, 23 Aug 2017 12:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=/cLBC0HBSMvTjLF5wbk5cAFOj/g4DD2PVZ6gh1H+Km0=; b=iOUEzZH1K5iycdG1i8JQAuXq0q bjz8yLcm+4ATOB7oSsqCZK80TjtwBjUXIMekBYBFo5i+nJm2/7HQoe2hPOTbHaxMaAatF9EoPfkxp rhe0+kaEHPvsMLymGgCLkwcnfWJ0kODQmarmpKDq+t6jYpwj7g1qOkwecr1BhFjFXmdB3RcuWV5cu nPXufwpd7DjEDh2Vj98s/OMG9k623YSUkRGbbRp0x6iXAhS0wcvjS20mD0xmOPf34DEo5g67Hetvb Ih9VXJW1tiFRFKy/Q/Npiufa4OhnRchcmB5UcGvVlY0GltvDlPUVyaUBIpeadTxf9NTh7djT+fiq7 r9FCw8lA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dkUeP-0003TH-6y; Wed, 23 Aug 2017 12:20:49 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dkUe8-0003OU-PZ for linux-rockchip@lists.infradead.org; Wed, 23 Aug 2017 12:20:34 +0000 Received: by mail-pf0-x244.google.com with SMTP id m6so1323440pfm.1 for <linux-rockchip@lists.infradead.org>; 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=JNODkx+6Go9Cc4bxveq12J+xtDAq0zzv2JHkix1Nu/yN2V8pnsyrGRrY9I9czMnQ9J loaigx9KXF5YEl8+j+AKA69lsTqg/VME6Ytt/NrEMamDuJFA0Ai6SJycrg9jCtG8ITFd zbOcNI5HckR+jZM4fAaVe3iQ+w2MOo/E8oJnJbSbBT6OBxN73E7AUeKDtrSu9vp18F+l iOUW4N4JMwblBgkeUJCjCzgaySrU/yFJQ1c1zXycDV61DTQz4dgrfWVtPMzg9tlsZOwa UdiBxVlAJIEJqYgP0HYOXo78jU272lihgiOKcpEq+YGCclScT9Ky31HQ5lQOzczhldqb 2PJg== X-Gm-Message-State: AHYfb5jY6K9I3+3xUkoZ+a6WjqpZuLAMhAX0pVUlHF1TCdupYeaeOHwB QHKAwIFYLGuNIg== 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 <dolinux.peng@gmail.com> To: heiko@sntech.de Subject: [PATCH v2 05/10] ASoC: rockchip: Remove unnecessary function call 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: <cover.1503484313.git.dolinux.peng@gmail.com> References: <cover.1503484313.git.dolinux.peng@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170823_052032_862319_C27C97E3 X-CRM114-Status: UNSURE ( 7.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Peng Donglin <dolinux.peng@gmail.com>, tiwai@suse.com, linux-rockchip@lists.infradead.org, broonie@kernel.org, perex@perex.cz MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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; }
The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin <dolinux.peng@gmail.com> --- sound/soc/rockchip/rk3288_hdmi_analog.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)