Peter Stuge (peter@stuge.se) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3619
-gerrit
commit 267f4afad530247835e0c604756311de98e06758 Author: Peter Stuge peter@stuge.se Date: Sat Jul 6 20:05:13 2013 +0200
lenovo/x60: Move mainboard_enable() code into a mainboard_init()
mainboard_enable() is now modeled after google/parrot where the function just sets the root device/mainboard dev->ops->init to a mainboard_init() function, which is invoked to initialize the actual device.
Change-Id: Iaf9187532a1e432b991260201b95dda85cc312c5 Signed-off-by: Peter Stuge peter@stuge.se --- src/mainboard/lenovo/x60/mainboard.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/lenovo/x60/mainboard.c b/src/mainboard/lenovo/x60/mainboard.c index d2d0733..b344ccb 100644 --- a/src/mainboard/lenovo/x60/mainboard.c +++ b/src/mainboard/lenovo/x60/mainboard.c @@ -85,7 +85,7 @@ int get_cst_entries(acpi_cstate_t **entries) return ARRAY_SIZE(cst_entries); }
-static void mainboard_enable(device_t dev) +static void mainboard_init(device_t dev) { device_t dev0, idedev, sdhci_dev;
@@ -133,6 +133,11 @@ static void mainboard_enable(device_t dev) } }
+static void mainboard_enable(device_t dev) +{ + dev->ops->init = mainboard_init; +} + struct chip_operations mainboard_ops = { .enable_dev = mainboard_enable, };