[net,2/2] mfd: rsmu: call regmap_exit() on exit

Message ID 20221111200911.6505-2-min.li.xe@renesas.com
State New
Headers
Series [net,1/2] mfd/ptp: clockmatrix: support 32-bit address space |

Commit Message

Min Li Nov. 11, 2022, 8:09 p.m. UTC
  Signed-off-by: Min Li <min.li.xe@renesas.com>
---
 drivers/mfd/rsmu_core.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/drivers/mfd/rsmu_core.c b/drivers/mfd/rsmu_core.c
index 29437fd0bd5b..b278ce9ec235 100644
--- a/drivers/mfd/rsmu_core.c
+++ b/drivers/mfd/rsmu_core.c
@@ -82,6 +82,7 @@  int rsmu_core_init(struct rsmu_ddata *rsmu)
 void rsmu_core_exit(struct rsmu_ddata *rsmu)
 {
 	mutex_destroy(&rsmu->lock);
+	regmap_exit(rsmu->regmap);
 }
 
 MODULE_DESCRIPTION("Renesas SMU core driver");