pcm atiixp: Remove dead variable.
The Linux driver clears ATI_REG_CMD_AC_RESET and sets ATI_REG_CMD_POWERDOWN, so writing the calculated value that sets both would seem to be wrong. This could be updated to match Linux's behavior, but instead I've just left it as-is.
This commit is contained in:
parent
771e4a8613
commit
3e4aa9c629
@ -1333,7 +1333,6 @@ static int
|
||||
atiixp_pci_suspend(device_t dev)
|
||||
{
|
||||
struct atiixp_info *sc = pcm_getdevinfo(dev);
|
||||
uint32_t value;
|
||||
|
||||
/* quickly disable interrupts and save channels active state */
|
||||
atiixp_lock(sc);
|
||||
@ -1352,8 +1351,6 @@ atiixp_pci_suspend(device_t dev)
|
||||
|
||||
/* power down aclink and pci bus */
|
||||
atiixp_lock(sc);
|
||||
value = atiixp_rd(sc, ATI_REG_CMD);
|
||||
value |= ATI_REG_CMD_POWERDOWN | ATI_REG_CMD_AC_RESET;
|
||||
atiixp_wr(sc, ATI_REG_CMD, ATI_REG_CMD_POWERDOWN);
|
||||
atiixp_unlock(sc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user