summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-04-17 12:16:39 +0200
committerMichael Niewöhner <foss@mniewoehner.de>2021-04-19 10:44:53 +0000
commit8a10aff35aa723d639ae627ab1fc56accc036f64 (patch)
tree7cdf3e83a76882438fd073e37af4c7ba6cc2665c
parentfc8e997caadf9caf9ad127ebd34a568707dd515d (diff)
downloadcoreboot-8a10aff35aa723d639ae627ab1fc56accc036f64.tar.xz
soc/intel/cannonlake/elog.c: Define __SIMPLE_DEVICE__
Change-Id: Ie2f02b9934d843c29d17a72a6bf3b2bae91ce8d1 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52457 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
-rw-r--r--src/soc/intel/cannonlake/elog.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/soc/intel/cannonlake/elog.c b/src/soc/intel/cannonlake/elog.c
index 4c39988fff..dcc1a798cd 100644
--- a/src/soc/intel/cannonlake/elog.c
+++ b/src/soc/intel/cannonlake/elog.c
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#define __SIMPLE_DEVICE__
+
#include <bootstate.h>
#include <console/console.h>
#include <device/pci_ops.h>
@@ -11,11 +13,7 @@
#include <soc/pm.h>
struct pme_status_info {
-#ifdef __SIMPLE_DEVICE__
pci_devfn_t dev;
-#else
- struct device *dev;
-#endif
uint8_t reg_offset;
uint32_t elog_event;
};
@@ -25,11 +23,7 @@ struct pme_status_info {
static void pch_log_pme_internal_wake_source(void)
{
size_t i;
-#ifdef __SIMPLE_DEVICE__
pci_devfn_t dev;
-#else
- struct device *dev;
-#endif
uint16_t val;
bool dev_found = false;