]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
regulator: core: Fix modpost error "regulator_get_regmap" undefined
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 10 Jun 2024 19:55:32 +0000 (20:55 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:18 +0000 (16:27 +0200)
BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 3f60497c658d2072714d097a177612d34b34aa3d ]

Fix the modpost error "regulator_get_regmap" undefined by adding export
symbol.

Fixes: 04eca28cde52 ("regulator: Add helpers for low-level register access")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406110117.mk5UR3VZ-lkp@intel.com
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20240610195532.175942-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/regulator/core.c

index 1b897d0009c5bba7d40f3a386db0f5549b532fe4..b92092022bf390bb0ff487d192a3c9d9d6eb5203 100644 (file)
@@ -3336,6 +3336,7 @@ struct regmap *regulator_get_regmap(struct regulator *regulator)
 
        return map ? map : ERR_PTR(-EOPNOTSUPP);
 }
+EXPORT_SYMBOL_GPL(regulator_get_regmap);
 
 /**
  * regulator_get_hardware_vsel_register - get the HW voltage selector register