From 70d79a454676b551f3bc2059217179e31905ee5c Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 21 Aug 2016 18:36:06 +0200 Subject: src/southbridge: Add required space before opening parenthesis '(' Change-Id: I43b9b86fd51dbdc50108026099c60238f3012cbe Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/16290 Tested-by: build bot (Jenkins) Reviewed-by: Omar Pakker --- src/southbridge/broadcom/bcm5785/bcm5785.c | 6 +++--- src/southbridge/broadcom/bcm5785/early_setup.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/southbridge/broadcom') diff --git a/src/southbridge/broadcom/bcm5785/bcm5785.c b/src/southbridge/broadcom/bcm5785/bcm5785.c index 7e8d8c32c4..efe38ab3ac 100644 --- a/src/southbridge/broadcom/bcm5785/bcm5785.c +++ b/src/southbridge/broadcom/bcm5785/bcm5785.c @@ -46,10 +46,10 @@ void bcm5785_enable(device_t dev) else { // same bus unsigned devfn; devfn = (dev->path.pci.devfn) & ~7; - if( dev->vendor == PCI_VENDOR_ID_SERVERWORKS ) { - if(dev->device == 0x0036) //PCI-X Bridge + if (dev->vendor == PCI_VENDOR_ID_SERVERWORKS ) { + if (dev->device == 0x0036) //PCI-X Bridge { devfn += (1<<3); } - else if(dev->device == 0x0223) // USB + else if (dev->device == 0x0223) // USB { devfn -= (1<<3); } } sb_pci_main_dev = dev_find_slot(dev->bus->secondary, devfn); diff --git a/src/southbridge/broadcom/bcm5785/early_setup.c b/src/southbridge/broadcom/bcm5785/early_setup.c index e29fab4700..3ddc9ca643 100644 --- a/src/southbridge/broadcom/bcm5785/early_setup.c +++ b/src/southbridge/broadcom/bcm5785/early_setup.c @@ -47,13 +47,13 @@ static void bcm5785_enable_wdt_port_cf9(void) dword_old = pci_read_config32(dev, 0x4c); dword = dword_old | (1<<4); //enable Timer Func - if(dword != dword_old ) { + if (dword != dword_old ) { pci_write_config32(dev, 0x4c, dword); } dword_old = pci_read_config32(dev, 0x6c); dword = dword_old | (1<<9); //unhide Timer Func in pci space - if(dword != dword_old ) { + if (dword != dword_old ) { pci_write_config32(dev, 0x6c, dword); } @@ -149,7 +149,7 @@ static void bcm5785_enable_msg(void) // bit 1: enable upsteam messages // bit 0: enable shutdowm message to init generation dword = dword_old | (1<<5) | (1<<3) | (1<<2) | (1<<1) | (1<<0); // bit 1 and bit 4 must be set, otherwise interrupt msg will not be delivered to the processor - if(dword != dword_old ) { + if (dword != dword_old ) { pci_write_config32(dev, 0x6c, dword); } } -- cgit v1.2.3