diff options
| author | Gavin Atkinson <gavin@FreeBSD.org> | 2012-09-19 12:27:23 +0000 |
|---|---|---|
| committer | Gavin Atkinson <gavin@FreeBSD.org> | 2012-09-19 12:27:23 +0000 |
| commit | e935190a33f7a00291fa9cdfae3338cd99590826 (patch) | |
| tree | 3f394f93c5ea4f518737a9e08fd86e7af882dc69 /sys/dev/re | |
| parent | 26e76e98efe5d5d7bf50766061c3de5de53508b1 (diff) | |
Notes
Diffstat (limited to 'sys/dev/re')
| -rw-r--r-- | sys/dev/re/if_re.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 006731080f27..82f56c34d04b 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -1347,8 +1347,8 @@ re_attach(device_t dev) if ((cap & PCIEM_LINK_CAP_ASPM) != 0) { ctl = pci_read_config(dev, sc->rl_expcap + PCIER_LINK_CTL, 2); - if ((ctl & 0x0003) != 0) { - ctl &= ~0x0003; + if ((ctl & PCIEM_LINK_CTL_ASPMC) != 0) { + ctl &= ~PCIEM_LINK_CTL_ASPMC; pci_write_config(dev, sc->rl_expcap + PCIER_LINK_CTL, ctl, 2); device_printf(dev, "ASPM disabled\n"); |
