diff mbox

[v15,8/8] memory: mtk-smi: export mtk_smi_larb_get/put

Message ID 1461769552-2752-9-git-send-email-p.zabel@pengutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Philipp Zabel April 27, 2016, 3:05 p.m. UTC
To allow building mediatek-drm.ko as a module, the
mtk_smi_larb_get and mtk_smi_larb_put symbols have
to be exported.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/memory/mtk-smi.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Matthias Brugger April 27, 2016, 6 p.m. UTC | #1
On 27/04/16 17:05, Philipp Zabel wrote:
> To allow building mediatek-drm.ko as a module, the
> mtk_smi_larb_get and mtk_smi_larb_put symbols have
> to be exported.
>
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

> ---
>   drivers/memory/mtk-smi.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
> index 089091f..f6b5757 100644
> --- a/drivers/memory/mtk-smi.c
> +++ b/drivers/memory/mtk-smi.c
> @@ -91,6 +91,7 @@ int mtk_smi_larb_get(struct device *larbdev)
>
>   	return 0;
>   }
> +EXPORT_SYMBOL_GPL(mtk_smi_larb_get);
>
>   void mtk_smi_larb_put(struct device *larbdev)
>   {
> @@ -106,6 +107,7 @@ void mtk_smi_larb_put(struct device *larbdev)
>   	mtk_smi_disable(&larb->smi);
>   	mtk_smi_disable(common);
>   }
> +EXPORT_SYMBOL_GPL(mtk_smi_larb_put);
>
>   static int
>   mtk_smi_larb_bind(struct device *dev, struct device *master, void *data)
>
diff mbox

Patch

diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index 089091f..f6b5757 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -91,6 +91,7 @@  int mtk_smi_larb_get(struct device *larbdev)
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(mtk_smi_larb_get);
 
 void mtk_smi_larb_put(struct device *larbdev)
 {
@@ -106,6 +107,7 @@  void mtk_smi_larb_put(struct device *larbdev)
 	mtk_smi_disable(&larb->smi);
 	mtk_smi_disable(common);
 }
+EXPORT_SYMBOL_GPL(mtk_smi_larb_put);
 
 static int
 mtk_smi_larb_bind(struct device *dev, struct device *master, void *data)