driver core: Export device_is_dependent() to modules
authorLiu Ying <victor.liu@nxp.com>
Mon, 27 Nov 2023 05:14:13 +0000 (13:14 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Nov 2023 16:03:07 +0000 (17:03 +0100)
Export device_is_dependent() since the drm_kms_helper module is starting
to use it.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127051414.3783108-2-victor.liu@nxp.com
drivers/base/core.c

index 67ba592afc7776420995c8730af8200ad12e3e90..bfd2bf0364b7cd340920b519c2b09de44b45c5c9 100644 (file)
@@ -328,6 +328,7 @@ int device_is_dependent(struct device *dev, void *target)
        }
        return ret;
 }
+EXPORT_SYMBOL_GPL(device_is_dependent);
 
 static void device_link_init_status(struct device_link *link,
                                    struct device *consumer,