Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9f18bdd authored by Jishnu Prakash's avatar Jishnu Prakash Committed by Gerrit - the friendly Code Review server
Browse files

mfd: qcom-spmi-pmic: Add remove API



Add remove API for unloading spmi-pmic module, as the SPMI
framework right now requires drivers under it to have a
remove API defined when removing them.

Change-Id: Iaf5b9f602fb9389c75a68702eaceb847abcf2876
Signed-off-by: default avatarJishnu Prakash <quic_jprakash@quicinc.com>
parent 3c984c4b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#include <linux/kernel.h>
@@ -148,8 +149,11 @@ static int pmic_spmi_probe(struct spmi_device *sdev)

MODULE_DEVICE_TABLE(of, pmic_spmi_id_table);

static void pmic_spmi_remove(struct spmi_device *sdev) {}

static struct spmi_driver pmic_spmi_driver = {
	.probe = pmic_spmi_probe,
	.remove = pmic_spmi_remove,
	.driver = {
		.name = "pmic-spmi",
		.of_match_table = pmic_spmi_id_table,