Message ID | 1341392441-619-1-git-send-email-Barry.Song@csr.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/drivers/spi/spi-sirf.c b/drivers/spi/spi-sirf.c index ecc3d97..0b10e4f 100644 --- a/drivers/spi/spi-sirf.c +++ b/drivers/spi/spi-sirf.c @@ -567,7 +567,7 @@ static int __devinit spi_sirfsoc_probe(struct platform_device *pdev) sspi->clk = clk_get(&pdev->dev, NULL); if (IS_ERR(sspi->clk)) { - ret = -EINVAL; + ret = PTR_ERR(sspi->clk); goto free_pin; } clk_enable(sspi->clk);