Commit 1b7399c1 authored by Zhang Zekun's avatar Zhang Zekun Committed by openeuler-sync-bot
Browse files

driver core: Fix kabi broken

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9QG3P



-----------------------------------

Move the device_link_wait_removal() to the of.h to
avoid kabi broken.

Fixes: 6c72a794b8ae ("of: dynamic: Synchronize of_changeset_destroy() with the devlink removals")
Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
(cherry picked from commit b389b02f)
parent eed89994
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@

#define pr_fmt(fmt)	"OF: " fmt

#include <linux/device.h>
#include <linux/of.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
+0 −1
Original line number Diff line number Diff line
@@ -969,7 +969,6 @@ void device_link_del(struct device_link *link);
void device_link_remove(void *consumer, struct device *supplier);
void device_links_supplier_sync_state_pause(void);
void device_links_supplier_sync_state_resume(void);
void device_link_wait_removal(void);

extern __printf(3, 4)
int dev_err_probe(const struct device *dev, int err, const char *fmt, ...);
+2 −0
Original line number Diff line number Diff line
@@ -1443,6 +1443,8 @@ static inline int of_reconfig_get_state_change(unsigned long action,
}
#endif /* CONFIG_OF_DYNAMIC */

void device_link_wait_removal(void);

/**
 * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node
 * @np: Pointer to the given device_node