From 64df119053ca42269e54ebb351c96566e570dc3f Mon Sep 17 00:00:00 2001 From: "myung-su.cha" Date: Wed, 21 Mar 2018 18:04:04 +0900 Subject: [PATCH] [COMMON] spi: s3c64xx: modify clk name to ipclk and gate clk Change-Id: I45b5388b905403028b8a2733d61b3359143e5e8f Signed-off-by: myung-su.cha --- drivers/spi/spi-s3c64xx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index d8023ea69af4..38b2e5340441 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -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); -- 2.20.1