diff mbox series

[v19,2/5] driver core: Export device_is_bound()

Message ID 20220112111028.v19.2.Ie1de382686d61909e17fa8def2b83899256e8f5d@changeid (mailing list archive)
State Superseded
Headers show
Series usb: misc: Add onboard_usb_hub driver | expand

Commit Message

Matthias Kaehlcke Jan. 12, 2022, 7:10 p.m. UTC
Export device_is_bound() to enable its use by drivers that are
built as modules.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---

Changes in v19:
- none

Changes in v18:
- patch added to the series

 drivers/base/dd.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Doug Anderson Jan. 13, 2022, 1:02 a.m. UTC | #1
Hi,

On Wed, Jan 12, 2022 at 11:11 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> Export device_is_bound() to enable its use by drivers that are
> built as modules.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>
> Changes in v19:
> - none
>
> Changes in v18:
> - patch added to the series
>
>  drivers/base/dd.c | 1 +
>  1 file changed, 1 insertion(+)

Though it's probably above my pay grade to do so:

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Stephen Boyd Jan. 13, 2022, 3:49 a.m. UTC | #2
Quoting Matthias Kaehlcke (2022-01-12 11:10:45)
> Export device_is_bound() to enable its use by drivers that are
> built as modules.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
diff mbox series

Patch

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 68ea1f949daa..07eefddd4a77 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -370,6 +370,7 @@  bool device_is_bound(struct device *dev)
 {
 	return dev->p && klist_node_attached(&dev->p->knode_driver);
 }
+EXPORT_SYMBOL_GPL(device_is_bound);
 
 static void driver_bound(struct device *dev)
 {