mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-08 19:44:10 +08:00
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>
This commit is contained in:
parent
7a504c935e
commit
358d6c87e7
@ -73,6 +73,7 @@ int ufs_qcom_phy_calibrate(struct ufs_qcom_phy *ufs_qcom_phy,
|
|||||||
out:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_calibrate);
|
||||||
|
|
||||||
struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev,
|
struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev,
|
||||||
struct ufs_qcom_phy *common_cfg,
|
struct ufs_qcom_phy *common_cfg,
|
||||||
@ -111,6 +112,7 @@ struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev,
|
|||||||
out:
|
out:
|
||||||
return generic_phy;
|
return generic_phy;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_generic_probe);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This assumes the embedded phy structure inside generic_phy is of type
|
* 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)
|
|||||||
{
|
{
|
||||||
return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy);
|
return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(get_ufs_qcom_phy);
|
||||||
|
|
||||||
static
|
static
|
||||||
int ufs_qcom_phy_base_init(struct platform_device *pdev,
|
int ufs_qcom_phy_base_init(struct platform_device *pdev,
|
||||||
@ -229,6 +232,7 @@ ufs_qcom_phy_init_clks(struct phy *generic_phy,
|
|||||||
out:
|
out:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_init_clks);
|
||||||
|
|
||||||
int
|
int
|
||||||
ufs_qcom_phy_init_vregulators(struct phy *generic_phy,
|
ufs_qcom_phy_init_vregulators(struct phy *generic_phy,
|
||||||
@ -253,6 +257,7 @@ ufs_qcom_phy_init_vregulators(struct phy *generic_phy,
|
|||||||
out:
|
out:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_init_vregulators);
|
||||||
|
|
||||||
static int __ufs_qcom_phy_init_vreg(struct phy *phy,
|
static int __ufs_qcom_phy_init_vreg(struct phy *phy,
|
||||||
struct ufs_qcom_phy_vreg *vreg, const char *name, bool optional)
|
struct ufs_qcom_phy_vreg *vreg, const char *name, bool optional)
|
||||||
@ -648,6 +653,7 @@ int ufs_qcom_phy_remove(struct phy *generic_phy,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_remove);
|
||||||
|
|
||||||
int ufs_qcom_phy_exit(struct phy *generic_phy)
|
int ufs_qcom_phy_exit(struct phy *generic_phy)
|
||||||
{
|
{
|
||||||
@ -658,6 +664,7 @@ int ufs_qcom_phy_exit(struct phy *generic_phy)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_exit);
|
||||||
|
|
||||||
int ufs_qcom_phy_is_pcs_ready(struct phy *generic_phy)
|
int ufs_qcom_phy_is_pcs_ready(struct phy *generic_phy)
|
||||||
{
|
{
|
||||||
@ -726,6 +733,7 @@ out_disable_phy:
|
|||||||
out:
|
out:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_power_on);
|
||||||
|
|
||||||
int ufs_qcom_phy_power_off(struct phy *generic_phy)
|
int ufs_qcom_phy_power_off(struct phy *generic_phy)
|
||||||
{
|
{
|
||||||
@ -744,3 +752,4 @@ int ufs_qcom_phy_power_off(struct phy *generic_phy)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ufs_qcom_phy_power_off);
|
||||||
|
Loading…
Reference in New Issue
Block a user