Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp394844pxb; Wed, 3 Mar 2021 06:07:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0GoJP1w1oKy+MW93N2+4jBcFSNAZ3pU/owsQsnYFg9GhphMX49rUxMRZzvIF1M9QXVyGv X-Received: by 2002:ac2:5a11:: with SMTP id q17mr7207325lfn.354.1614780442761; Wed, 03 Mar 2021 06:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614780442; cv=none; d=google.com; s=arc-20160816; b=dj92mzmFVNAMKwHYusmiZUIfz+JwxYfqHmtSR3QAuxqmO/Ug6cEmdWXNrsq08GoYro lyyre937LD3GPkbhQYEkjFmVYnxdEfXRLOHnigELjavL8y30ZrWamZ2t3azgWEixbtKq TAQxdcKs9whxkODozbh16t7wzzgQ4TfoRYl1P+ivZspctzfKSIJrSxolNIZidxiKhnoi VyryAmmUWNQmqUGecua7QB26VZ1CQq6AkI02bFYJjC7gQ2C6XJLz4jXOCob6ny60qkbR 4SZX7G5ZMIyGp3JBSUongbasG/n5gW+bhBEp0+Om15iLo6rZujTDgTsDeclPkTCh4nCv 86Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Br/Djyu6sysKRAt9o2PRa3xC+XIIhNl6OJAXbbUX9h0=; b=Z0BTbKakwPHw3xX47lB7b4a5+BVTkOHi1ogXCVyUBy0CGCUvXkxjGoM0gmaIztifiR yDNrsYPR+k77W2Pc963bXW2fDwyJxygFSeZkl5JbHP0XDDrLJ1DUTtyU0wf3GCfTFYf6 Lx0qRE3eGiEAjjxdQjK3JGhqjtM7xX3821Q0rYfq2p64RkQnwsAVLoyN1cPxWQvT4eCT ijAo0eW1RGQ2apSZUSyWTAL6rkdv9LiAeoUPPeDSIZ0vGHJesRBReAqUqPuwy9v1g6wS lm9Wc1UCYk9u0Lo00WO3KQ0Fy0Cs10k3WNSgV+uAFUKyHwM2D1vTGZ92jBcGbKl1Q/H4 i1IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=idQo+PaW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si5263491edo.504.2021.03.03.06.06.39; Wed, 03 Mar 2021 06:07:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=idQo+PaW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243324AbhCAUfZ (ORCPT + 99 others); Mon, 1 Mar 2021 15:35:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:37622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237382AbhCARIP (ORCPT ); Mon, 1 Mar 2021 12:08:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A35D64F7E; Mon, 1 Mar 2021 16:40:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616852; bh=6QsqnqnjmOxLUlPsvlC6bQ7rf8487dlOe1i/yMnOgRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=idQo+PaWmMaC0iXl1UwMNfTNDOr7xdgp4/qeZXXTis8een5GS3tEWiSt4QWroxNog S2LgN6NeH4RZQDvZ3P1udvVIq35JKbBfzCI2kDsEzzmI0sPMK5MItYQe2QWzzGZrcA c2IQehi1O4+0wspRvAL0zm5GrjrkQdZcAxL0PsJQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yoshihiro Shimoda , Geert Uytterhoeven , Matti Vaittinen , Lee Jones , Sasha Levin Subject: [PATCH 4.19 117/247] mfd: bd9571mwv: Use devm_mfd_add_devices() Date: Mon, 1 Mar 2021 17:12:17 +0100 Message-Id: <20210301161037.402264099@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yoshihiro Shimoda [ Upstream commit c58ad0f2b052b5675d6394e03713ee41e721b44c ] To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes: d3ea21272094 ("mfd: Add ROHM BD9571MWV-M MFD PMIC driver") Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by: Lee Jones Reviewed-by: Geert Uytterhoeven Reviewed-by: Matti Vaittinen Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/bd9571mwv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/bd9571mwv.c b/drivers/mfd/bd9571mwv.c index fab3cdc27ed64..19d57a45134c6 100644 --- a/drivers/mfd/bd9571mwv.c +++ b/drivers/mfd/bd9571mwv.c @@ -185,9 +185,9 @@ static int bd9571mwv_probe(struct i2c_client *client, return ret; } - ret = mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO, bd9571mwv_cells, - ARRAY_SIZE(bd9571mwv_cells), NULL, 0, - regmap_irq_get_domain(bd->irq_data)); + ret = devm_mfd_add_devices(bd->dev, PLATFORM_DEVID_AUTO, + bd9571mwv_cells, ARRAY_SIZE(bd9571mwv_cells), + NULL, 0, regmap_irq_get_domain(bd->irq_data)); if (ret) { regmap_del_irq_chip(bd->irq, bd->irq_data); return ret; -- 2.27.0