diff options
author | Tom Rini <trini@konsulko.com> | 2015-10-28 23:56:43 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-28 23:56:43 +0300 |
commit | 446d37c1acc76680770400fd90e6c502e49d72df (patch) | |
tree | f309e83e262b0ee6e41d0f1bf92af9fb0e3faa18 /drivers/spi/ich.c | |
parent | ab0a6a5dba740afb490e6e7d417e345284e0dbec (diff) | |
parent | bef87adf95e7ca923f866e27bbcccb2dad85df9f (diff) | |
download | u-boot-446d37c1acc76680770400fd90e6c502e49d72df.tar.xz |
Merge branch 'master' of git://git.denx.de/u-boot-spi
Diffstat (limited to 'drivers/spi/ich.c')
-rw-r--r-- | drivers/spi/ich.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index b974e8432c..f85af9c9fb 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -692,13 +692,13 @@ static int ich_spi_probe(struct udevice *bus) */ if (plat->use_sbase) { bios_cntl = ich_readb(priv, priv->bcr); - bios_cntl &= ~(1 << 5); /* clear Enable InSMM_STS (EISS) */ + bios_cntl &= ~BIT(5); /* clear Enable InSMM_STS (EISS) */ bios_cntl |= 1; /* Write Protect Disable (WPD) */ ich_writeb(priv, bios_cntl, priv->bcr); } else { pci_read_config_byte(plat->dev, 0xdc, &bios_cntl); if (plat->ich_version == 9) - bios_cntl &= ~(1 << 5); + bios_cntl &= ~BIT(5); pci_write_config_byte(plat->dev, 0xdc, bios_cntl | 0x1); } |