driver core: Export symbol: device_links_read_lock/unlock

The symbols is used for rockchip video codec driver,
which located driver/rockchip/video/mpp. When mpp is build
for module, it will be error.

Error message:
ERROR: "device_links_read_unlock"
[drivers/video/rockchip/mpp/rk_vcodec.ko] undefined!
ERROR: "device_links_read_lock" [drivers/video/rockchip/mpp/rk_vcodec.ko] undefined!
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make: *** [kernel.img] Error 2
make: *** Deleting file `kernel.img'`

Change-Id: Ie412341c03ad71d257392a22249b62bedd0be58b
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
Ding Wei
2021-10-20 16:37:46 +08:00
parent 2d50781c01
commit 88ce0688ff

View File

@@ -100,6 +100,9 @@ void device_links_read_unlock(int not_used)
}
#endif /* !CONFIG_SRCU */
EXPORT_SYMBOL(device_links_read_lock);
EXPORT_SYMBOL(device_links_read_unlock);
static bool device_is_ancestor(struct device *dev, struct device *target)
{
while (target->parent) {