projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7118fd9
)
drm/gma500: use to_pci_dev()
author
Geliang Tang
<geliangtang@163.com>
Sun, 27 Dec 2015 10:45:58 +0000
(18:45 +0800)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 4 Jan 2016 06:57:38 +0000
(07:57 +0100)
Use to_pci_dev() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/gma500/power.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/gma500/power.c
b/drivers/gpu/drm/gma500/power.c
index b6b135fcd59c54d3f0f69d5027fe974f81fbfd86..bea8578846d1577feba1d812773d7f8548d8306e 100644
(file)
--- a/
drivers/gpu/drm/gma500/power.c
+++ b/
drivers/gpu/drm/gma500/power.c
@@
-187,7
+187,7
@@
static bool gma_resume_pci(struct pci_dev *pdev)
*/
int gma_power_suspend(struct device *_dev)
{
- struct pci_dev *pdev =
container_of(_dev, struct pci_dev,
dev);
+ struct pci_dev *pdev =
to_pci_dev(_
dev);
struct drm_device *dev = pci_get_drvdata(pdev);
struct drm_psb_private *dev_priv = dev->dev_private;
@@
-214,7
+214,7
@@
int gma_power_suspend(struct device *_dev)
*/
int gma_power_resume(struct device *_dev)
{
- struct pci_dev *pdev =
container_of(_dev, struct pci_dev,
dev);
+ struct pci_dev *pdev =
to_pci_dev(_
dev);
struct drm_device *dev = pci_get_drvdata(pdev);
mutex_lock(&power_mutex);