From 3012ced79017a81c4e2e96173b6a834ef45ce2b7 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 30 Jul 2019 19:41:19 -0700 Subject: [PATCH] clk: qcom: mdss: Omit support for unused PLLs This kernel won't be used on devices with 7nm, 14nm, or 28nm PLLs nor will it be used with the 10nm DisplayPort PLL since our only display is connected via DSI. Don't compile support for PLLs we won't use. Signed-off-by: Danny Lin [dereference23: Adapted for atoll] Signed-off-by: Alexander Winkowski --- drivers/clk/qcom/mdss/Makefile | 13 ------------- drivers/clk/qcom/mdss/mdss-pll.c | 2 ++ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/clk/qcom/mdss/Makefile b/drivers/clk/qcom/mdss/Makefile index a2f63c594896..d183393f80a8 100755 --- a/drivers/clk/qcom/mdss/Makefile +++ b/drivers/clk/qcom/mdss/Makefile @@ -1,16 +1,3 @@ obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-pll-util.o obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-pll.o obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-10nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-10nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-10nm-util.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-7nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-7nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-7nm-util.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-28lpm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-28nm-util.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-14nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-14nm-util.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dp-pll-14nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-hdmi-pll-28lpm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-12nm.o -obj-$(CONFIG_QCOM_MDSS_PLL) += mdss-dsi-pll-12nm-util.o diff --git a/drivers/clk/qcom/mdss/mdss-pll.c b/drivers/clk/qcom/mdss/mdss-pll.c index f99070ec9c3d..f09adec138ff 100755 --- a/drivers/clk/qcom/mdss/mdss-pll.c +++ b/drivers/clk/qcom/mdss/mdss-pll.c @@ -179,6 +179,7 @@ static int mdss_pll_clock_register(struct platform_device *pdev, case MDSS_DSI_PLL_10NM: rc = dsi_pll_clock_register_10nm(pdev, pll_res); break; +#if 0 case MDSS_DP_PLL_10NM: rc = dp_pll_clock_register_10nm(pdev, pll_res); break; @@ -204,6 +205,7 @@ static int mdss_pll_clock_register(struct platform_device *pdev, case MDSS_DSI_PLL_12NM: rc = dsi_pll_clock_register_12nm(pdev, pll_res); break; +#endif case MDSS_UNKNOWN_PLL: default: rc = -EINVAL;