]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi-sh-hspi.c
Merge branch 'perf/urgent' into perf/core, to resolve conflict and to prepare for...
[karo-tx-linux.git] / drivers / spi / spi-sh-hspi.c
index 9009456bdf4d29c6febf56b162113fa5e4bf78ef..c8e795ef2e132fcb10dd4ac196decbd887861f5d 100644 (file)
@@ -244,9 +244,9 @@ static int hspi_probe(struct platform_device *pdev)
                return -ENOMEM;
        }
 
-       clk = clk_get(NULL, "shyway_clk");
+       clk = clk_get(&pdev->dev, NULL);
        if (IS_ERR(clk)) {
-               dev_err(&pdev->dev, "shyway_clk is required\n");
+               dev_err(&pdev->dev, "couldn't get clock\n");
                ret = -EINVAL;
                goto error0;
        }