diff options
Diffstat (limited to 'drivers/spi/omap_uwire.c')
-rw-r--r-- | drivers/spi/omap_uwire.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/spi/omap_uwire.c b/drivers/spi/omap_uwire.c index 60b5381c65c4..fe8b9ac0ccef 100644 --- a/drivers/spi/omap_uwire.c +++ b/drivers/spi/omap_uwire.c | |||
@@ -506,11 +506,12 @@ static int __init uwire_probe(struct platform_device *pdev) | |||
506 | 506 | ||
507 | dev_set_drvdata(&pdev->dev, uwire); | 507 | dev_set_drvdata(&pdev->dev, uwire); |
508 | 508 | ||
509 | uwire->ck = clk_get(&pdev->dev, "armxor_ck"); | 509 | uwire->ck = clk_get(&pdev->dev, "fck"); |
510 | if (!uwire->ck || IS_ERR(uwire->ck)) { | 510 | if (IS_ERR(uwire->ck)) { |
511 | dev_dbg(&pdev->dev, "no mpu_xor_clk ?\n"); | 511 | status = PTR_ERR(uwire->ck); |
512 | dev_dbg(&pdev->dev, "no functional clock?\n"); | ||
512 | spi_master_put(master); | 513 | spi_master_put(master); |
513 | return -ENODEV; | 514 | return status; |
514 | } | 515 | } |
515 | clk_enable(uwire->ck); | 516 | clk_enable(uwire->ck); |
516 | 517 | ||