From patchwork Thu Oct 19 13:03:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 10016665 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 AAD3F600CC for ; Thu, 19 Oct 2017 13:05:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 815F7205FD for ; Thu, 19 Oct 2017 13:05:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 739A328D50; Thu, 19 Oct 2017 13:05:00 +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=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 C67AF205FD for ; Thu, 19 Oct 2017 13:04:59 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=uXFePQyC9nKJuNYOc/U8pPQb44kKPzQ8gFFB696P2A0=; b=M92toHHf3iCBT8 6ykLyUb/4eILODsjP+nEp4+CiFGJRSI369Y/2HCXDQ9skDLBJW2iyLM9V1IbmKNwNLxjgx3fpTYg8 DQuTX8oKCJy2fRD9pxymEGtdaxHUuuUsK2GWIK5DLGQJOm2FUtrcZ5W9uc7eDIlWKyE3spfdeEB/p zaOs1dQITo9m84eH+h/Rj/d6s0ttIkaHNNb9izbn6qc/2CMb2qSWYJE/Nyd1k98hoTBWa63GzH+r1 ARmB/f9lkiA8TebEDlDcvtd45X4s57neAdp1XEnv45KfdxcVqJU7EM7DKLxGJGPT6IYsJWwAJ35ys UtS5beCojPUNHXb85/3w==; 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 1e5AVO-0002Kz-J5; Thu, 19 Oct 2017 13:04:58 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5AUh-0001nm-0m for linux-arm-kernel@bombadil.infradead.org; Thu, 19 Oct 2017 13:04:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dxI8A15KPaQI7p0n/t7WnveOjNZF7pLca6SPN4+NxnQ=; b=LVxZ7Pj9F548nywdC/g7AnUsd 1adamr0MvyaBaURKhNBdwXe0JfVC30vosgqCDsO0ODIm1je9BmDRs98cefz3w0Z8d3zgEOr6tXeoT ddEPHYbWW9mPumVS1ivW+H/v1WtCTs3iTowDvcjIqPoeg8g8RyQHhOpRSGN6HmC1D3d9CnYEoyA/h pt+fpuVFERGXoXvdzfpwBq0oYB563ZHAdubLE+RJGo/tNkeJEllTXv1XkIJRu5PhRdc6xf451Q2R8 kVSWJoPJnYhoLNai7DHdKRwtI0UhkXPJjTh4qOyUocEM+GX3PzhUItUobLcyh5eSqeh0ORoIOk8mm Hwj03MqtQ==; Received: from mx07-00178001.pphosted.com ([62.209.51.94]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5AUd-0004hj-Li for linux-arm-kernel@lists.infradead.org; Thu, 19 Oct 2017 13:04:13 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9JCwdQY012180; Thu, 19 Oct 2017 15:03:35 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2dpnktk0cn-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 19 Oct 2017 15:03:35 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 271D73A; Thu, 19 Oct 2017 13:03:35 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0395126AD; Thu, 19 Oct 2017 13:03:35 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.44) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 19 Oct 2017 15:03:34 +0200 Received: from localhost (10.201.23.16) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 19 Oct 2017 15:03:34 +0200 From: Olivier Moysan To: , , , , , , , , , , , , , Subject: [INTERNAL][PATCH 6/7] ASoC: stm32: sai: Fix get reset controller Date: Thu, 19 Oct 2017 15:03:22 +0200 Message-ID: <1508418203-16840-7-git-send-email-olivier.moysan@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508418203-16840-1-git-send-email-olivier.moysan@st.com> References: <1508418203-16840-1-git-send-email-olivier.moysan@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.23.16] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-10-19_05:, , signatures=0 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: arnaud.pouliquen@st.com, benjamin.gaignard@st.com 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 Use devm version of reset_control_get function to manage driver removing properly. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c index 1258bef..5fe878ac 100644 --- a/sound/soc/stm/stm32_sai.c +++ b/sound/soc/stm/stm32_sai.c @@ -85,7 +85,7 @@ static int stm32_sai_probe(struct platform_device *pdev) } /* reset */ - rst = reset_control_get_exclusive(&pdev->dev, NULL); + rst = devm_reset_control_get_exclusive(&pdev->dev, NULL); if (!IS_ERR(rst)) { reset_control_assert(rst); udelay(2);