aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-04-26 02:11:38 +0000
committerWarner Losh <imp@FreeBSD.org>2004-04-26 02:11:38 +0000
commit1c168bb710a99bb76eefbd47c06ccefcc8d4955b (patch)
treeb1c881aaf4b71793a68e49a59ef1161a931f7c4d /sys/dev/pci
parenta606451bd20daa4ca2ee5de1c13a7a166e5d7648 (diff)
Notes
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 41e5835c70478..cf84596381dd7 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -495,7 +495,7 @@ pci_set_powerstate_method(device_t dev, device_t child, int state)
/*
* Dx -> Dx is a nop always.
*/
- if (pci_get_powerstate(dev) == state)
+ if (pci_get_powerstate(child) == state)
return (0);
if (cfg->pp.pp_cap != 0) {