Commit 29092475 authored by Wolfram Sang's avatar Wolfram Sang Committed by Krzysztof Kozlowski

ARM: samsung: simplify getting .drvdata

We should get drvdata from struct device directly. Going via
platform_device is an unneeded step back and forth.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 6430b122
...@@ -413,8 +413,7 @@ static int s3c_adc_remove(struct platform_device *pdev) ...@@ -413,8 +413,7 @@ static int s3c_adc_remove(struct platform_device *pdev)
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int s3c_adc_suspend(struct device *dev) static int s3c_adc_suspend(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct adc_device *adc = dev_get_drvdata(dev);
struct adc_device *adc = platform_get_drvdata(pdev);
unsigned long flags; unsigned long flags;
u32 con; u32 con;
......
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