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:
parent
6430b122c0
commit
2909247595
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue