diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-03-22 23:54:50 -0400 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-04-03 08:46:18 -0400 |
commit | 358d6c87e73310c8e6564153cb556c0cd9e523fc (patch) | |
tree | 7a94498761cc2471e36795556a751e8d15e4ca85 | |
parent | 7a504c935e42737e5ad40ea2f6f2d21b4dc27e81 (diff) |
phy: qcom-ufs: Fix build error due to missing export symbols
Fix below build error when compile the driver as a module.
ERROR: "ufs_qcom_phy_power_off" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_power_on" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_exit" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_calibrate" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_generic_probe" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_init_vregulators" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_init_clks" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_remove" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "get_ufs_qcom_phy" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] undefined!
ERROR: "ufs_qcom_phy_power_off" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_power_on" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_exit" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_generic_probe" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_init_vregulators" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_init_clks" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_calibrate" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "ufs_qcom_phy_remove" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
ERROR: "get_ufs_qcom_phy" [drivers/phy/phy-qcom-ufs-qmp-14nm.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
-rw-r--r-- | drivers/phy/phy-qcom-ufs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/phy/phy-qcom-ufs.c b/drivers/phy/phy-qcom-ufs.c index d95effe3cdc1..a149d92df656 100644 --- a/drivers/phy/phy-qcom-ufs.c +++ b/drivers/phy/phy-qcom-ufs.c | |||
@@ -73,6 +73,7 @@ int ufs_qcom_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy, | |||
73 | out: | 73 | out: |
74 | return ret; | 74 | return ret; |
75 | } | 75 | } |
76 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_calibrate); | ||
76 | 77 | ||
77 | struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev, | 78 | struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev, |
78 | struct ufs_qcom_phy *common_cfg, | 79 | struct ufs_qcom_phy *common_cfg, |
@@ -111,6 +112,7 @@ struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev, | |||
111 | out: | 112 | out: |
112 | return generic_phy; | 113 | return generic_phy; |
113 | } | 114 | } |
115 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_generic_probe); | ||
114 | 116 | ||
115 | /* | 117 | /* |
116 | * This assumes the embedded phy structure inside generic_phy is of type | 118 | * This assumes the embedded phy structure inside generic_phy is of type |
@@ -122,6 +124,7 @@ struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy) | |||
122 | { | 124 | { |
123 | return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy); | 125 | return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy); |
124 | } | 126 | } |
127 | EXPORT_SYMBOL_GPL(get_ufs_qcom_phy); | ||
125 | 128 | ||
126 | static | 129 | static |
127 | int ufs_qcom_phy_base_init(struct platform_device *pdev, | 130 | int ufs_qcom_phy_base_init(struct platform_device *pdev, |
@@ -229,6 +232,7 @@ ufs_qcom_phy_init_clks(struct phy *generic_phy, | |||
229 | out: | 232 | out: |
230 | return err; | 233 | return err; |
231 | } | 234 | } |
235 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_init_clks); | ||
232 | 236 | ||
233 | int | 237 | int |
234 | ufs_qcom_phy_init_vregulators(struct phy *generic_phy, | 238 | ufs_qcom_phy_init_vregulators(struct phy *generic_phy, |
@@ -253,6 +257,7 @@ ufs_qcom_phy_init_vregulators(struct phy *generic_phy, | |||
253 | out: | 257 | out: |
254 | return err; | 258 | return err; |
255 | } | 259 | } |
260 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_init_vregulators); | ||
256 | 261 | ||
257 | static int __ufs_qcom_phy_init_vreg(struct phy *phy, | 262 | static int __ufs_qcom_phy_init_vreg(struct phy *phy, |
258 | struct ufs_qcom_phy_vreg *vreg, const char *name, bool optional) | 263 | struct ufs_qcom_phy_vreg *vreg, const char *name, bool optional) |
@@ -648,6 +653,7 @@ int ufs_qcom_phy_remove(struct phy *generic_phy, | |||
648 | 653 | ||
649 | return 0; | 654 | return 0; |
650 | } | 655 | } |
656 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_remove); | ||
651 | 657 | ||
652 | int ufs_qcom_phy_exit(struct phy *generic_phy) | 658 | int ufs_qcom_phy_exit(struct phy *generic_phy) |
653 | { | 659 | { |
@@ -658,6 +664,7 @@ int ufs_qcom_phy_exit(struct phy *generic_phy) | |||
658 | 664 | ||
659 | return 0; | 665 | return 0; |
660 | } | 666 | } |
667 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_exit); | ||
661 | 668 | ||
662 | int ufs_qcom_phy_is_pcs_ready(struct phy *generic_phy) | 669 | int ufs_qcom_phy_is_pcs_ready(struct phy *generic_phy) |
663 | { | 670 | { |
@@ -726,6 +733,7 @@ out_disable_phy: | |||
726 | out: | 733 | out: |
727 | return err; | 734 | return err; |
728 | } | 735 | } |
736 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_power_on); | ||
729 | 737 | ||
730 | int ufs_qcom_phy_power_off(struct phy *generic_phy) | 738 | int ufs_qcom_phy_power_off(struct phy *generic_phy) |
731 | { | 739 | { |
@@ -744,3 +752,4 @@ int ufs_qcom_phy_power_off(struct phy *generic_phy) | |||
744 | 752 | ||
745 | return 0; | 753 | return 0; |
746 | } | 754 | } |
755 | EXPORT_SYMBOL_GPL(ufs_qcom_phy_power_off); | ||