# \[PATCH v2 05/22\] media: Media Controller export non locking \_\_media\_entity\_setup\_link()

- From: Shuah Khan \<hidden\>
- Date: 2016-02-04 04:04:22 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2016/02/4677570
- Thread: https://ratatoskr.run/linux-media/2016/02/4677589/t.md

```text
Export __media_entity_setup_link() to be used from code paths
that hold the graph_mutex.

Signed-off-by: Shuah Khan <redacted>
---
 drivers/media/media-entity.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index 6179543..9b4d712 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -805,6 +805,7 @@ int __media_entity_setup_link(struct media_link *link, u32 flags)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(__media_entity_setup_link);
 
 int media_entity_setup_link(struct media_link *link, u32 flags)
 {
-- 
2.5.0
```
