diff options
author | Saravana Kannan <saravanak@google.com> | 2020-06-10 03:19:33 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-06-18 00:10:56 +0200 |
commit | 7d34ca3854845398cb36866d14bbdc43dcec1ad0 (patch) | |
tree | ce115e9517285fcbe2086b0c09e3fbcc2c0a6ea1 /drivers/base | |
parent | of: reserved_mem: Fix typo in the too-many-regions message (diff) | |
download | linux-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.c | 2 |
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; |