[COMMON] spi: s3c64xx: fix of_node name correctly
authormyung-su.cha <myung-su.cha@samsung.com>
Tue, 27 Mar 2018 10:14:25 +0000 (19:14 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
Change-Id: I179abd43e731fb25f2e4806afed18fe93fc61a00
Signed-off-by: myung-su.cha <myung-su.cha@samsung.com>
drivers/spi/spi-s3c64xx.c

index 38b2e53404411036ce6abc7839937550a70fbb55..a3379b23bdb7b9eeb022626350dd804a0a6cd1cc 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, "gate_spi_clk");
+               ret = of_alias_get_id(pdev->dev.of_node, "spi");
                if (ret < 0) {
                        dev_err(&pdev->dev, "failed to get alias id, errno %d\n",
                                ret);