Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932105AbdHWMVv (ORCPT ); Wed, 23 Aug 2017 08:21:51 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:32819 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753904AbdHWMVu (ORCPT ); Wed, 23 Aug 2017 08:21:50 -0400 From: Peng Donglin To: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: broonie@kernel.org, perex@perex.cz, tiwai@suse.com, Peng Donglin Subject: [PATCH v2 10/10] ASoC: ux500: Remove unnecessary function call Date: Wed, 23 Aug 2017 05:21:43 -0700 Message-Id: <32013b183a9bf0eeb22e98039324bd04df4276a7.1503484313.git.dolinux.peng@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 22 The work of the function platform_set_drvdata is done by devm_snd_soc_register_card. Signed-off-by: Peng Donglin --- sound/soc/ux500/mop500.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc099cf67..070a6880980e 100644 --- a/sound/soc/ux500/mop500.c +++ b/sound/soc/ux500/mop500.c @@ -115,7 +115,6 @@ static int mop500_probe(struct platform_device *pdev) dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n", __func__, mop500_card.name); - platform_set_drvdata(pdev, &mop500_card); snd_soc_card_set_drvdata(&mop500_card, NULL); -- 2.14.1