mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
soc: rockchip: io-domain: fix module compile error
Fix compile error when build to module:
ERROR: modpost: "of_find_regulator_by_node" [drivers/soc/rockchip/io-domain.ko] undefined!
Fixes: bc2ba01c88 ("soc: rockchip: io-domain: dump power supply-map when probe")
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I38490ed4129b500c3b3828c4f689a93c7ba93a67
This commit is contained in:
parent
f7995f721a
commit
713d5a769d
|
|
@ -638,6 +638,7 @@ static const struct of_device_id rockchip_iodomain_match[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(of, rockchip_iodomain_match);
|
||||
|
||||
#ifndef MODULE
|
||||
static const char *rdev_get_name(struct regulator_dev *rdev)
|
||||
{
|
||||
if (rdev->constraints && rdev->constraints->name)
|
||||
|
|
@ -708,6 +709,13 @@ static void rockchip_iodomain_dump(const struct platform_device *pdev,
|
|||
rdev_get_name(r));
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline void
|
||||
rockchip_iodomain_dump(const struct platform_device *pdev,
|
||||
struct rockchip_iodomain_supply *supply)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
static int rv1126_iodomain_notify(struct notifier_block *nb,
|
||||
unsigned long event,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user