From patchwork Mon Nov 27 18:53:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 10077897 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 EB5B7605BD for ; Mon, 27 Nov 2017 18:58:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDBDE28C75 for ; Mon, 27 Nov 2017 18:58:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D264F28F8C; Mon, 27 Nov 2017 18:58:38 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable 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 412BD28F76 for ; Mon, 27 Nov 2017 18:58:38 +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:Date:Message-Id: In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=wpu63wWo5ggvEOF/+j4QYgvvp8dpBTlnFu5mJAEnCEI=; b=SkZ exPsSMJT9l97kMg1kAXIJfVOKyoiZ5GihAgK8TXHOKnq5p2B1RqDqgHgh9EQ9pQlL1r9GXZs7ANoB dmvTVeLIR3rY6epu5tP+Q1/61FBaLp2hLfN5sT8GjjmHiZWSaLatOL5k9GWAHN4tgawXwv/O9okJy DcitB4yccp5fSeyiXXArGayxyafxfRC8xvRfkWlknyQsrp0HViHUKDWaSdhGSQQjetZiF3AjS+N5A bSaBI8MROE6mUHLSla/EY+GJFPX2HRXYFVhyEJsud2J0qlHAjc/fK7ex0OlkQShQRN5UCq2J1UazG rPn6Ew/eM536zr65FAgeik7Ms/G/4cg==; 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 1eJObx-0001Xp-9u; Mon, 27 Nov 2017 18:58:33 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJOYK-0006kk-37 for linux-arm-kernel@bombadil.infradead.org; Mon, 27 Nov 2017 18:54:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Date:Message-Id:In-Reply-To:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vX8HjDG/1kpd5qXCMTAB9yCNsn/0sJ0eFqt7l2/SvGI=; b=icDaBgBo6ocKQd3R1IKEPf+Ge9 RpzcjTQ6RK6QKLA7sW/F0HmIbK6mYezdbob/UkGES0hMphZuE8DvKYEHsRIppT4165Q8RPNNANQQn bWyDls0tQmNB2LZsBlyAqax+TSSO36nMrsOVlzrhiLud0DwaJ0tJyAXoCjAY3ZBkAp+P6PZ7RcBye WGiLnkouEsaJBp9VQZ5ZZzII3p8mt0EJZK6zqUuO+NsJiiMQ/umclPOxsAqqhVFYj6Abe1TnZjp2e 8usmKq2ncRMJwwhh9NNbpyAG5+R5G45D9BIDmnU8l65clUDBq4z6sAazYDYPk2KdTfeQcDGJUBms2 xqF1vHZQ==; Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJOYG-0002Be-Pf for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2017 18:54:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=vX8HjDG/1kpd5qXCMTAB9yCNsn/0sJ0eFqt7l2/SvGI=; b=K87ZWg7+HIos jKFXqqoW0FNuG+gpPHoEmwXE9WVM5CzefimS1tg/ETMhVIiFElHMxSS1S9tlPvgc5HZlySCpzCBGZ fMTmJCfK3Gf/YVz322LHKuMVIYNHA58wo6fMS0GzXkhrT1KokuKHZenpjIDUK+TS0dIboF3arm9TE NDsE4=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eJOWp-00072T-7i; Mon, 27 Nov 2017 18:53:15 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eJOWo-0007Dq-Qf; Mon, 27 Nov 2017 18:53:14 +0000 From: Mark Brown To: olivier moysan Subject: Applied "ASoC: stm32: sai: use devm_of_platform_populate()" to the asoc tree In-Reply-To: <1511362947-14747-4-git-send-email-olivier.moysan@st.com> Message-Id: Date: Mon, 27 Nov 2017 18:53:14 +0000 X-Bad-Reply: In-Reply-To but no 'Re:' in Subject. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171127_185444_861265_487400F4 X-CRM114-Status: GOOD ( 17.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, robh@kernel.org, alsa-devel@alsa-project.org, olivier.moysan@st.com, mcoquelin.stm32@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, kernel@stlinux.com, Benjamin Gaignard , benjamin.gaignard@st.com, perex@perex.cz, linux-arm-kernel@lists.infradead.org, alexandre.torgue@st.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch ASoC: stm32: sai: use devm_of_platform_populate() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 512d1bb4e86bd0fd4d665d4e454a3486236a419f Mon Sep 17 00:00:00 2001 From: olivier moysan Date: Wed, 22 Nov 2017 16:02:27 +0100 Subject: [PATCH] ASoC: stm32: sai: use devm_of_platform_populate() Use devm_of_platform_populate() instead of of_platform_depopulate() to simplify driver code. Signed-off-by: Benjamin Gaignard Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_sai.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c index 0a1f06418bf4..d743b7dd52fb 100644 --- a/sound/soc/stm/stm32_sai.c +++ b/sound/soc/stm/stm32_sai.c @@ -124,7 +124,6 @@ static int stm32_sai_set_sync(struct stm32_sai_data *sai_client, static int stm32_sai_probe(struct platform_device *pdev) { - struct device_node *np = pdev->dev.of_node; struct stm32_sai_data *sai; struct reset_control *rst; struct resource *res; @@ -184,14 +183,7 @@ static int stm32_sai_probe(struct platform_device *pdev) sai->set_sync = &stm32_sai_set_sync; platform_set_drvdata(pdev, sai); - return of_platform_populate(np, NULL, NULL, &pdev->dev); -} - -static int stm32_sai_remove(struct platform_device *pdev) -{ - of_platform_depopulate(&pdev->dev); - - return 0; + return devm_of_platform_populate(&pdev->dev); } MODULE_DEVICE_TABLE(of, stm32_sai_ids); @@ -202,7 +194,6 @@ static struct platform_driver stm32_sai_driver = { .of_match_table = stm32_sai_ids, }, .probe = stm32_sai_probe, - .remove = stm32_sai_remove, }; module_platform_driver(stm32_sai_driver);