summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/dsi/pll
diff options
context:
space:
mode:
authorHai Li <hali@codeaurora.org>2015-08-13 21:45:53 (GMT)
committerRob Clark <robdclark@gmail.com>2015-08-15 22:27:29 (GMT)
commit1bf4d7c5651a7cfcdcd77389b42d266441ecf444 (patch)
treea717863d41f4db6597b51c6cf66c5ea67e7f0a48 /drivers/gpu/drm/msm/dsi/pll
parent5c8290284402bf7d2c12269402b3177b899c78b7 (diff)
downloadlinux-1bf4d7c5651a7cfcdcd77389b42d266441ecf444.tar.xz
drm/msm/dsi: Make each PHY type compilation independent
On a certain platform, only one type of DSI PHY is used. This change allows the user to only compile the PHY type which is being used. Signed-off-by: Hai Li <hali@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/pll')
-rw-r--r--drivers/gpu/drm/msm/dsi/pll/dsi_pll.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h b/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h
index b69df19..063caa2 100644
--- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h
+++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h
@@ -83,8 +83,16 @@ void msm_dsi_pll_helper_unregister_clks(struct platform_device *pdev,
/*
* Initialization for Each PLL Type
*/
+#ifdef CONFIG_DRM_MSM_DSI_28NM_PHY
struct msm_dsi_pll *msm_dsi_pll_28nm_init(struct platform_device *pdev,
enum msm_dsi_phy_type type, int id);
+#else
+static inline struct msm_dsi_pll *msm_dsi_pll_28nm_init(
+ struct platform_device *pdev, enum msm_dsi_phy_type type, int id)
+{
+ return ERR_PTR(-ENODEV);
+}
+#endif
#endif /* __DSI_PLL_H__ */