mfd: db8500-prcmu: Remove unused *prcmu_set_ddr_opp() calls
[cascardo/linux.git] / drivers / mfd / db8500-prcmu.c
index c0a86ae..ca38a6a 100644 (file)
@@ -938,25 +938,6 @@ int db8500_prcmu_get_ddr_opp(void)
        return readb(PRCM_DDR_SUBSYS_APE_MINBW);
 }
 
-/**
- * db8500_set_ddr_opp - set the appropriate DDR OPP
- * @opp: The new DDR operating point to which transition is to be made
- * Returns: 0 on success, non-zero on failure
- *
- * This function sets the operating point of the DDR.
- */
-static bool enable_set_ddr_opp;
-int db8500_prcmu_set_ddr_opp(u8 opp)
-{
-       if (opp < DDR_100_OPP || opp > DDR_25_OPP)
-               return -EINVAL;
-       /* Changing the DDR OPP can hang the hardware pre-v21 */
-       if (enable_set_ddr_opp)
-               writeb(opp, PRCM_DDR_SUBSYS_APE_MINBW);
-
-       return 0;
-}
-
 /* Divide the frequency of certain clocks by 2 for APE_50_PARTLY_25_OPP. */
 static void request_even_slower_clocks(bool enable)
 {
@@ -3094,8 +3075,7 @@ static void db8500_prcmu_update_cpufreq(void)
        }
 }
 
-static int db8500_prcmu_register_ab8500(struct device *parent,
-                                       struct ab8500_platform_data *pdata)
+static int db8500_prcmu_register_ab8500(struct device *parent)
 {
        struct device_node *np;
        struct resource ab8500_resource;
@@ -3103,8 +3083,6 @@ static int db8500_prcmu_register_ab8500(struct device *parent,
                .name = "ab8500-core",
                .of_compatible = "stericsson,ab8500",
                .id = AB8500_VERSION_AB8500,
-               .platform_data = pdata,
-               .pdata_size = sizeof(struct ab8500_platform_data),
                .resources = &ab8500_resource,
                .num_resources = 1,
        };
@@ -3133,7 +3111,6 @@ static int db8500_prcmu_register_ab8500(struct device *parent,
 static int db8500_prcmu_probe(struct platform_device *pdev)
 {
        struct device_node *np = pdev->dev.of_node;
-       struct prcmu_pdata *pdata = dev_get_platdata(&pdev->dev);
        int irq = 0, err = 0;
        struct resource *res;
 
@@ -3149,7 +3126,7 @@ static int db8500_prcmu_probe(struct platform_device *pdev)
                return -ENOMEM;
        }
        init_prcm_registers();
-       dbx500_fw_version_init(pdev, pdata->version_offset);
+       dbx500_fw_version_init(pdev, DB8500_PRCMU_FW_VERSION_OFFSET);
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "prcmu-tcdm");
        if (!res) {
                dev_err(&pdev->dev, "no prcmu tcdm region provided\n");
@@ -3204,7 +3181,7 @@ static int db8500_prcmu_probe(struct platform_device *pdev)
                }
        }
 
-       err = db8500_prcmu_register_ab8500(&pdev->dev, pdata->ab_platdata);
+       err = db8500_prcmu_register_ab8500(&pdev->dev);
        if (err) {
                mfd_remove_devices(&pdev->dev);
                pr_err("prcmu: Failed to add ab8500 subdevice\n");