Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6614048ybx; Mon, 11 Nov 2019 11:51:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyNYXqcHKnrGI/ZPhACJHXTbNDYRe0ul/HeONFkCA+Vcj4Ks/2TXjhiFTb58QfieLrA2fgF X-Received: by 2002:a50:9136:: with SMTP id e51mr28136742eda.71.1573501876413; Mon, 11 Nov 2019 11:51:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573501876; cv=none; d=google.com; s=arc-20160816; b=P0MJ6Hw+OPDZMi41yUtjS79rcwnpxshllY2RHzIlGZF3ezQ4pI7/DpoW3abSAz14OP UBafu3MyRvIw8Y04V2zoH8D/cLntvzYn6eC4+wzc8hKsHkEtEDLjECS1QrKvKvJnRyYi tEEOtjyQv5lnDy1wmcDnmilm2vcn/FlOdDoBjgJPdYPiZZ3l7PyWFYUdA883dTo79kPO SP3F83PW/VsI/VFn5nFH0hEtdoc2UUjaHPujnZp90vglo4vtNF0YURZ4B6BvafhZ2r5U x5xb3WYWKDtLm91tHQ6fU2rxyAdcNKuF+ja5nip8TzmLB5DEQYZw7SiY/H6KMXyvNfU/ 79rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=lAT65ifMWfky+c92ejg83wuMl1JVQi2OgDRynoizhsg=; b=jYc6WazaJUp+Zex+M3mfdZyXl1INbGddMFmDI43kU2hp8oJ20t9/FyNh9jHwLb6Jfz Wwx2DhH4UTnJVjVQRgJ5+GwLTZXT4YL+thin+Jq7tlz37GNdMUzvHX75bfPcgWbCP/SN f4tyrRH38sYFQzq14trcOY3MM0DFLnhuJNPhLvy5PS4TQuOHNvejvlvAZ+YT1pgmOsNh PHVWlvvnMWCvbpiuT7ra4rXsy06a94EYJTRngP4HeiuRgRsD1RlOgYwO5+GRa7xr6wLe cOuqq7xz2KCSjujurE3d9zZRaDkCnUqjp4Dz2X2cIJNjvDv1zk6LLCMhsZcTq0VnPsAT FRCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=O5VhAetM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gw3si9518513ejb.385.2019.11.11.11.50.51; Mon, 11 Nov 2019 11:51:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=O5VhAetM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbfKKTtN (ORCPT + 99 others); Mon, 11 Nov 2019 14:49:13 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:50462 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbfKKTtM (ORCPT ); Mon, 11 Nov 2019 14:49:12 -0500 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=lAT65ifMWfky+c92ejg83wuMl1JVQi2OgDRynoizhsg=; b=O5VhAetM/UtC IvsTpQYg0QhkzwLoA3a/mhCR1M9YtzImtpUdwI3ZkELZH/FLwo/y5jUESbwMJf7N8Sd2TPTAihs26 H854gi13jIpcshX/MWt+LEa5Dxw292VYwCNrGAIR6RqDd0skPAm/nwd36MZBJ5r2Ggh9d6GRxSyhA O4ZqI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iUFgT-0005Nf-E1; Mon, 11 Nov 2019 19:49:09 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id D98532742C8A; Mon, 11 Nov 2019 19:49:08 +0000 (GMT) From: Mark Brown To: Chuhong Yuan Cc: Ashish Kumar , "Cc:"@sirena.co.uk, "Cc:"@sirena.co.uk, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown , Yogesh Gaur Subject: Applied "spi: nxp-fspi: Use devm API to fix missed unregistration of controller" to the spi tree In-Reply-To: <20191109075517.29988-1-hslester96@gmail.com> X-Patchwork-Hint: ignore Message-Id: <20191111194908.D98532742C8A@ypsilon.sirena.org.uk> Date: Mon, 11 Nov 2019 19:49:08 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: nxp-fspi: Use devm API to fix missed unregistration of controller has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 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 69c23dbf5f695c219008257b3bd86cff63edbe0b Mon Sep 17 00:00:00 2001 From: Chuhong Yuan Date: Sat, 9 Nov 2019 15:55:17 +0800 Subject: [PATCH] spi: nxp-fspi: Use devm API to fix missed unregistration of controller This driver forgets to unregister controller when remove. Use devm API to unregister it automatically to fix it. Signed-off-by: Chuhong Yuan Link: https://lore.kernel.org/r/20191109075517.29988-1-hslester96@gmail.com Signed-off-by: Mark Brown --- drivers/spi/spi-nxp-fspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index 501b923f2c27..c36bb1bb464e 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -1027,7 +1027,7 @@ static int nxp_fspi_probe(struct platform_device *pdev) ctlr->dev.of_node = np; - ret = spi_register_controller(ctlr); + ret = devm_spi_register_controller(&pdev->dev, ctlr); if (ret) goto err_destroy_mutex; -- 2.20.1