diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-11-05 18:50:38 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-11-09 11:03:03 +0000 |
commit | 21d6a27ac07d5233a7dd473d84c4c0b541059146 (patch) | |
tree | d926aa165ad61e40a4ebdc770a8cbc96fd23d24a /src/soc/intel/braswell/pmutil.c | |
parent | be5317f6d0084b1997ff7342fbf5a5af3eecd950 (diff) |
arch/x86: Replace some __SMM__ guards
We generally do not guard source in attempts to reduce
the final object sizes, but rely on garbage collection.
Most of the __unused attributes inserted here will be
removed when remaining __SIMPLE_DEVICE__ guards can
be removed.
Change-Id: I2440931fab4f41d7e8249c082e6c9b5a9cd0ef13
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36641
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/braswell/pmutil.c')
-rw-r--r-- | src/soc/intel/braswell/pmutil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/braswell/pmutil.c b/src/soc/intel/braswell/pmutil.c index 4bc621b80e..18cb04dd89 100644 --- a/src/soc/intel/braswell/pmutil.c +++ b/src/soc/intel/braswell/pmutil.c @@ -17,7 +17,9 @@ #include <arch/acpi.h> #include <arch/io.h> #include <assert.h> +#include <device/device.h> #include <device/mmio.h> +#include <device/pci.h> #include <device/pci_ops.h> #include <console/console.h> #include <soc/iomap.h> @@ -37,9 +39,7 @@ static inline pci_devfn_t get_pcu_dev(void) return pcu_dev; } -#else /* ENV_SMM */ -#include <device/device.h> -#include <device/pci.h> +#else /* __SIMPLE_DEVICE__ */ static struct device *pcu_dev; static struct device *get_pcu_dev(void) @@ -48,7 +48,7 @@ static struct device *get_pcu_dev(void) pcu_dev = pcidev_on_root(PCU_DEV, 0); return pcu_dev; } -#endif /* ENV_SMM */ +#endif /* __SIMPLE_DEVICE__ */ uint16_t get_pmbase(void) { |