soc/intel: add IS_ENABLED() around Kconfig symbol references
Change-Id: I3c5f9e0d3d1efdd83442ce724043729c8648ea64 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20348 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -40,7 +40,7 @@ static void serialio_enable_d3hot(struct resource *res)
|
||||
|
||||
static int serialio_uart_is_debug(struct device *dev)
|
||||
{
|
||||
#if CONFIG_INTEL_PCH_UART_CONSOLE
|
||||
#if IS_ENABLED(CONFIG_INTEL_PCH_UART_CONSOLE)
|
||||
switch (dev->path.pci.devfn) {
|
||||
case PCH_DEVFN_UART0: /* UART0 */
|
||||
return !!(CONFIG_INTEL_PCH_UART_CONSOLE_NUMBER == 0);
|
||||
@@ -277,7 +277,7 @@ static void serialio_set_resources(struct device *dev)
|
||||
{
|
||||
pci_dev_set_resources(dev);
|
||||
|
||||
#if CONFIG_INTEL_PCH_UART_CONSOLE
|
||||
#if IS_ENABLED(CONFIG_INTEL_PCH_UART_CONSOLE)
|
||||
/* Update UART base address if used for debug */
|
||||
if (serialio_uart_is_debug(dev)) {
|
||||
struct resource *res = find_resource(dev, PCI_BASE_ADDRESS_0);
|
||||
|
Reference in New Issue
Block a user