Commit a0af8b3c authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Ben Dooks

ARM: SAMSUNG: adc: disable/enable IRQ on suspend/resume

IRQ should be disabled on suspend and re-enabled on resume.
Signed-off-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 0fe1309b
...@@ -412,6 +412,7 @@ static int s3c_adc_suspend(struct platform_device *pdev, pm_message_t state) ...@@ -412,6 +412,7 @@ static int s3c_adc_suspend(struct platform_device *pdev, pm_message_t state)
con |= S3C2410_ADCCON_STDBM; con |= S3C2410_ADCCON_STDBM;
writel(con, adc->regs + S3C2410_ADCCON); writel(con, adc->regs + S3C2410_ADCCON);
disable_irq(adc->irq);
clk_disable(adc->clk); clk_disable(adc->clk);
return 0; return 0;
...@@ -422,6 +423,7 @@ static int s3c_adc_resume(struct platform_device *pdev) ...@@ -422,6 +423,7 @@ static int s3c_adc_resume(struct platform_device *pdev)
struct adc_device *adc = platform_get_drvdata(pdev); struct adc_device *adc = platform_get_drvdata(pdev);
clk_enable(adc->clk); clk_enable(adc->clk);
enable_irq(adc->irq);
writel(adc->prescale | S3C2410_ADCCON_PRSCEN, writel(adc->prescale | S3C2410_ADCCON_PRSCEN,
adc->regs + S3C2410_ADCCON); adc->regs + S3C2410_ADCCON);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment