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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:
Wolfram Sang 2018-04-19 16:05:31 +02:00 committed by Krzysztof Kozlowski
parent 6430b122c0
commit 2909247595
1 changed files with 1 additions and 2 deletions

View File

@ -413,8 +413,7 @@ static int s3c_adc_remove(struct platform_device *pdev)
#ifdef CONFIG_PM
static int s3c_adc_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct adc_device *adc = platform_get_drvdata(pdev);
struct adc_device *adc = dev_get_drvdata(dev);
unsigned long flags;
u32 con;