diff options
author | Martin Roth <martinroth@google.com> | 2017-06-24 21:30:42 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-13 23:54:56 +0000 |
commit | 1858d6a90a81aac67cde90190d8a332b2e817c9d (patch) | |
tree | e9d62ce12354e419a8c055da12d092642fac4d88 /src/southbridge/via/vt8237r/usb.c | |
parent | 32c27c2f850c64cdbf78acd00f0c2ce4b535af64 (diff) |
src/southbridge: add IS_ENABLED() around Kconfig symbol references
Change-Id: Ie965cbcf7f7b6f6c9e9a69e2a1ff0ba491246cbe
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20353
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/southbridge/via/vt8237r/usb.c')
-rw-r--r-- | src/southbridge/via/vt8237r/usb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/southbridge/via/vt8237r/usb.c b/src/southbridge/via/vt8237r/usb.c index 42da53a8f2..057a07ddae 100644 --- a/src/southbridge/via/vt8237r/usb.c +++ b/src/southbridge/via/vt8237r/usb.c @@ -21,13 +21,13 @@ #include "chip.h" #include "vt8237r.h" -#if CONFIG_EPIA_VT8237R_INIT +#if IS_ENABLED(CONFIG_EPIA_VT8237R_INIT) u32 usb_io_addr[4] = {0xcc00, 0xd000, 0xd400, 0xd800}; #endif static void usb_i_init(struct device *dev) { -#if CONFIG_EPIA_VT8237R_INIT +#if IS_ENABLED(CONFIG_EPIA_VT8237R_INIT) u8 reg8; printk(BIOS_DEBUG, "Entering %s\n", __func__); @@ -66,7 +66,7 @@ static void usb_i_init(struct device *dev) static void vt8237_usb_i_read_resources(struct device *dev) { -#if CONFIG_EPIA_VT8237R_INIT +#if IS_ENABLED(CONFIG_EPIA_VT8237R_INIT) struct resource *res; u8 function = (u8) dev->path.pci.devfn & 0x7; @@ -92,7 +92,7 @@ static void vt8237_usb_i_read_resources(struct device *dev) static void usb_ii_init(struct device *dev) { struct southbridge_via_vt8237r_config *cfg; -#if CONFIG_EPIA_VT8237R_INIT +#if IS_ENABLED(CONFIG_EPIA_VT8237R_INIT) u8 reg8; printk(BIOS_DEBUG, "Entering %s\n", __func__); @@ -136,7 +136,7 @@ static void usb_ii_init(struct device *dev) static void vt8237_usb_ii_read_resources(struct device *dev) { -#if CONFIG_EPIA_VT8237R_INIT +#if IS_ENABLED(CONFIG_EPIA_VT8237R_INIT) struct resource *res; /* Fix the I/O Resources of the USB2.0 Interface */ |