mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user