]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi-sh-hspi.c
[media] mt9p031: Power down the sensor if no supported device has been detected
[karo-tx-linux.git] / 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;