diff options
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/s5p-sss.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 49ad8cbade69..4b314326f48a 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c | |||
@@ -580,7 +580,7 @@ static int s5p_aes_probe(struct platform_device *pdev) | |||
580 | resource_size(res), pdev->name)) | 580 | resource_size(res), pdev->name)) |
581 | return -EBUSY; | 581 | return -EBUSY; |
582 | 582 | ||
583 | pdata->clk = clk_get(dev, "secss"); | 583 | pdata->clk = devm_clk_get(dev, "secss"); |
584 | if (IS_ERR(pdata->clk)) { | 584 | if (IS_ERR(pdata->clk)) { |
585 | dev_err(dev, "failed to find secss clock source\n"); | 585 | dev_err(dev, "failed to find secss clock source\n"); |
586 | return -ENOENT; | 586 | return -ENOENT; |
@@ -645,7 +645,6 @@ static int s5p_aes_probe(struct platform_device *pdev) | |||
645 | 645 | ||
646 | err_irq: | 646 | err_irq: |
647 | clk_disable(pdata->clk); | 647 | clk_disable(pdata->clk); |
648 | clk_put(pdata->clk); | ||
649 | 648 | ||
650 | s5p_dev = NULL; | 649 | s5p_dev = NULL; |
651 | platform_set_drvdata(pdev, NULL); | 650 | platform_set_drvdata(pdev, NULL); |
@@ -667,7 +666,6 @@ static int s5p_aes_remove(struct platform_device *pdev) | |||
667 | tasklet_kill(&pdata->tasklet); | 666 | tasklet_kill(&pdata->tasklet); |
668 | 667 | ||
669 | clk_disable(pdata->clk); | 668 | clk_disable(pdata->clk); |
670 | clk_put(pdata->clk); | ||
671 | 669 | ||
672 | s5p_dev = NULL; | 670 | s5p_dev = NULL; |
673 | platform_set_drvdata(pdev, NULL); | 671 | platform_set_drvdata(pdev, NULL); |