diff options
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
-rw-r--r-- | drivers/spi/spi-sh-hspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index 32f7b55fce09..60cfae51c713 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c | |||
@@ -290,7 +290,7 @@ static int hspi_probe(struct platform_device *pdev) | |||
290 | } | 290 | } |
291 | 291 | ||
292 | clk = clk_get(NULL, "shyway_clk"); | 292 | clk = clk_get(NULL, "shyway_clk"); |
293 | if (!clk) { | 293 | if (IS_ERR(clk)) { |
294 | dev_err(&pdev->dev, "shyway_clk is required\n"); | 294 | dev_err(&pdev->dev, "shyway_clk is required\n"); |
295 | ret = -EINVAL; | 295 | ret = -EINVAL; |
296 | goto error0; | 296 | goto error0; |