]> Pileus Git - ~andy/linux/blobdiff - drivers/spi/spi-sh-hspi.c
Merge tag 'nfs-for-3.9-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[~andy/linux] / drivers / spi / spi-sh-hspi.c
index 32f7b55fce093f07130bb7fd2af64f4d85609710..60cfae51c713818ef630f802db2e2e8c747f98d7 100644 (file)
@@ -290,7 +290,7 @@ static int hspi_probe(struct platform_device *pdev)
        }
 
        clk = clk_get(NULL, "shyway_clk");
-       if (!clk) {
+       if (IS_ERR(clk)) {
                dev_err(&pdev->dev, "shyway_clk is required\n");
                ret = -EINVAL;
                goto error0;