Skip to contentSkip to conversation

ARM: Samsung: Export MIPI CSIS/DSIM PHY control functions

PATCH New Sylwester Nawrocki 2 participants 2 messages Jan 3, 2013 – Jan 10, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Samsung: Export MIPI CSIS/DSIM PHY control functions

The s5p_csis_phy_enable/s5p_dsim_phy_enable functions are now used directly by corresponding drivers and thus need to be exported so the drivers can be built as modules.

---
 arch/arm/plat-samsung/setup-mipiphy.c |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/plat-samsung/setup-mipiphy.c +3 -0
index 1474593..66df315 100644
@@ -8,6 +8,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
@@ -50,8 +51,10 @@ int s5p_csis_phy_enable(int id, bool on)
 {
 	return __s5p_mipi_phy_control(id, on, S5P_MIPI_DPHY_SRESETN);
 }
+EXPORT_SYMBOL(s5p_csis_phy_enable);
 
 int s5p_dsim_phy_enable(struct platform_device *pdev, bool on)
 {
 	return __s5p_mipi_phy_control(pdev->id, on, S5P_MIPI_DPHY_MRESETN);
 }
+EXPORT_SYMBOL(s5p_dsim_phy_enable);

--
1.7.9.5

#1 lore raw

PATCH 1/1 ARM: Samsung: Export MIPI CSIS/DSIM PHY control functions

Quoted 37 lines · Sylwester Nawrocki

The s5p_csis_phy_enable/s5p_dsim_phy_enable functions are now used directly by corresponding drivers and thus need to be exported so the drivers can be built as modules.

---
 arch/arm/plat-samsung/setup-mipiphy.c |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/plat- renamed from arch/arm/plat-samsung/setup-mipiphy.c +0 -0

samsung/setup-mipiphy.c
index 1474593..66df315 100644

arch/arm/plat-samsung/setup-mipiphy.c +3 -1
@@ -8,6 +8,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
@@ -50,8 +51,10 @@ int s5p_csis_phy_enable(int id, bool on)
 {
 	return __s5p_mipi_phy_control(id, on, S5P_MIPI_DPHY_SRESETN);
 }
+EXPORT_SYMBOL(s5p_csis_phy_enable);
 
 int s5p_dsim_phy_enable(struct platform_device *pdev, bool on)
 {
 	return __s5p_mipi_phy_control(pdev->id, on,
 S5P_MIPI_DPHY_MRESETN);
 }
+EXPORT_SYMBOL(s5p_dsim_phy_enable);
--
Quoted 1 line

1.7.9.5

OK, applied.

Thanks.

- Kukjin