summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2020-06-10 03:19:33 +0200
committerRob Herring <robh@kernel.org>2020-06-18 00:10:56 +0200
commit7d34ca3854845398cb36866d14bbdc43dcec1ad0 (patch)
treece115e9517285fcbe2086b0c09e3fbcc2c0a6ea1 /drivers/base
parentof: reserved_mem: Fix typo in the too-many-regions message (diff)
downloadlinux-7d34ca3854845398cb36866d14bbdc43dcec1ad0.tar.xz
linux-7d34ca3854845398cb36866d14bbdc43dcec1ad0.zip
driver core: Add device_is_dependent() to linux/device.h
DT implementation of fw_devlink needs this function to detect cycles. So make it available. Signed-off-by: Saravana Kannan <saravanak@google.com> Tested-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 67d39a90b45c..320a0e1d628a 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -121,7 +121,7 @@ int device_links_read_lock_held(void)
* Check if @target depends on @dev or any device dependent on it (its child or
* its consumer etc). Return 1 if that is the case or 0 otherwise.
*/
-static int device_is_dependent(struct device *dev, void *target)
+int device_is_dependent(struct device *dev, void *target)
{
struct device_link *link;
int ret;