driver core: make device_is_dependent() static
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 10:28:15 +0000 (10:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 20:14:25 +0000 (20:14 +0000)
commiteec4954b81c3d9a38b99e78afb553c359db40093
tree6f79a31b3ab39fabf0e28a4e6cb1336fe884451d
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
driver core: make device_is_dependent() static

The function device_is_dependent() is only called by the driver core
internally and should not, at this time, be called by anyone else
outside of it, so mark it as static so as not to give driver authors the
wrong idea.

Cc: Saravana Kannan <saravanak@google.com>
Acked-by: "Rafael J. Wysocki" <rafael@kernel.org>
Link: https://lore.kernel.org/r/2023112815-faculty-thud-add8@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/device.h