From a5e6953336fdd86d7e50d3d97a0214bfc8683946 Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Thu, 24 Nov 2022 14:27:37 +0530 Subject: [PATCH] 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: Jishnu Prakash --- drivers/mfd/qcom-spmi-pmic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c index 11b711ca62b4..906a18ac6517 100644 --- a/drivers/mfd/qcom-spmi-pmic.c +++ b/drivers/mfd/qcom-spmi-pmic.c @@ -2,6 +2,7 @@ /* * Copyright (c) 2014-2015, 2017-2019, The Linux Foundation. * All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -146,8 +147,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,