rs780: use bitwise rather than boolean not
authorJonathan A. Kollasch <jakllsch@kollasch.net>
Thu, 5 Jan 2012 01:37:48 +0000 (19:37 -0600)
committerMarc Jones <marcj303@gmail.com>
Thu, 5 Jan 2012 17:08:07 +0000 (18:08 +0100)
Change-Id: Ie3872c57990f9784aafda14f8c7fc842b3a65260
Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Reviewed-on: http://review.coreboot.org/518
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Marc Jones <marcj303@gmail.com>
src/southbridge/amd/rs780/pcie.c

index efa2e58e7619fa494737c5b1e5592751aeda85d9..be80ed3e0e144c01c1128271f287602dd4f0ab47 100644 (file)
@@ -72,7 +72,7 @@ static void PciePowerOffGppPorts(device_t nb_dev, device_t dev, u32 port)
        state = ~state;
        state &= (1 << 4) + (1 << 5) + (1 << 6) + (1 << 7);
        state_save = state << 17;
-       state &= !(AtiPcieCfg.PortHp);
+       state &= ~(AtiPcieCfg.PortHp);
        reg = nbmisc_read_index(nb_dev, 0x0c);
        reg |= state;
        nbmisc_write_index(nb_dev, 0x0c, reg);