projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
388bf2e
)
Staging: vt6655: use for_each_pci_dev()
author
Kulikov Vasiliy
<segooon@gmail.com>
Sat, 3 Jul 2010 16:04:43 +0000
(20:04 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 8 Jul 2010 20:03:28 +0000
(13:03 -0700)
Use for_each_pci_dev() to simplify the code.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6655/device_main.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6655/device_main.c
b/drivers/staging/vt6655/device_main.c
index
0d697d0
..
d498442
100644
(file)
--- a/
drivers/staging/vt6655/device_main.c
+++ b/
drivers/staging/vt6655/device_main.c
@@
-3655,7
+3655,7
@@
device_notify_reboot(struct notifier_block *nb, unsigned long event, void *p)
case SYS_DOWN:
case SYS_HALT:
case SYS_POWER_OFF:
-
while ((pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL
) {
+
for_each_pci_dev(pdev
) {
if(pci_dev_driver(pdev) == &device_driver) {
if (pci_get_drvdata(pdev))
viawget_suspend(pdev, PMSG_HIBERNATE);