[COMMON] spi: s3c64xx: modify clk name to ipclk and gate clk
authormyung-su.cha <myung-su.cha@samsung.com>
Wed, 21 Mar 2018 09:04:04 +0000 (18:04 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: I45b5388b905403028b8a2733d61b3359143e5e8f
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
drivers/spi/spi-s3c64xx.c

index d8023ea69af4a67c8c19e97626d5f4826850312e..38b2e53404411036ce6abc7839937550a70fbb55 100644 (file)
@@ -1549,7 +1549,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
        sdd->idle_ip_index = exynos_get_idle_ip_index(dev_name(&pdev->dev));
 
        if (pdev->dev.of_node) {
-               ret = of_alias_get_id(pdev->dev.of_node, "spi");
+               ret = of_alias_get_id(pdev->dev.of_node, "gate_spi_clk");
                if (ret < 0) {
                        dev_err(&pdev->dev, "failed to get alias id, errno %d\n",
                                ret);
@@ -1617,15 +1617,14 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
        }
 
        /* Setup clocks */
-       sdd->clk = devm_clk_get(&pdev->dev, "spi");
+       sdd->clk = devm_clk_get(&pdev->dev, "gate_spi_clk");
        if (IS_ERR(sdd->clk)) {
                dev_err(&pdev->dev, "Unable to acquire clock 'spi'\n");
                ret = PTR_ERR(sdd->clk);
                goto err0;
        }
 
-       snprintf(clk_name, sizeof(clk_name), "spi_busclk%d", sci->src_clk_nr);
-       sdd->src_clk = devm_clk_get(&pdev->dev, clk_name);
+       sdd->src_clk = devm_clk_get(&pdev->dev, "ipclk_spi");
        if (IS_ERR(sdd->src_clk)) {
                dev_err(&pdev->dev,
                        "Unable to acquire clock '%s'\n", clk_name);