src/ec: Drop __PRE_RAM__ and __SMM__ guards
For files built in ramstage and smm -classes, testing for !__PRE_RAM__ is redundant. All chip_operations are exluded with use of DEVTREE_EARLY in static devicetree, so garbage collection will take care of the !__SMM__ cases. Change-Id: Id7219848d6f5c41c4a9724a72204fa5ef9458e43 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34940 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
7d640e2ac7
commit
07841c2a2a
9 changed files with 1 additions and 32 deletions
|
|
@ -14,8 +14,6 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef __PRE_RAM__
|
||||
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pnp.h>
|
||||
|
|
@ -125,7 +123,6 @@ static u8 ec_io_read(u16 addr)
|
|||
}
|
||||
*/
|
||||
|
||||
#ifndef __SMM__
|
||||
static void ene932_init(struct device *dev)
|
||||
{
|
||||
if (!dev->enabled)
|
||||
|
|
@ -155,5 +152,3 @@ struct chip_operations ec_compal_ene932_ops = {
|
|||
CHIP_NAME("COMPAL ENE932 EC")
|
||||
.enable_dev = enable_dev
|
||||
};
|
||||
#endif /* ! __SMM__ */
|
||||
#endif /* ! __PRE_RAM__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue