diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-04 19:53:02 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-05-08 03:03:23 +0000 |
commit | a2e282b06a945ba7b3cbc73b5eeda9d55e6ceaf8 (patch) | |
tree | 42b4fe709997292b616ff4ca94d531641e6e2c3d | |
parent | 9981177cb8e06d5a00d22e1185a05aa38d217e33 (diff) | |
download | coreboot-a2e282b06a945ba7b3cbc73b5eeda9d55e6ceaf8.tar.xz |
mb/apple: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I14d82b0463d184ae89d7137f2dc6732bbb608b73
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26074
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
-rw-r--r-- | src/mainboard/apple/macbook21/mainboard.c | 4 | ||||
-rw-r--r-- | src/mainboard/apple/macbookair4_2/mainboard.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/apple/macbook21/mainboard.c b/src/mainboard/apple/macbook21/mainboard.c index eb74ec16f8..c5ed0485f9 100644 --- a/src/mainboard/apple/macbook21/mainboard.c +++ b/src/mainboard/apple/macbook21/mainboard.c @@ -70,12 +70,12 @@ int get_cst_entries(acpi_cstate_t **entries) return ARRAY_SIZE(cst_entries); } -static void mainboard_init(device_t dev) +static void mainboard_init(struct device *dev) { install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS, GMA_INT15_PANEL_FIT_DEFAULT, PANEL, 3); } -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { dev->ops->init = mainboard_init; } diff --git a/src/mainboard/apple/macbookair4_2/mainboard.c b/src/mainboard/apple/macbookair4_2/mainboard.c index f48b9b13a0..cd0ab81b36 100644 --- a/src/mainboard/apple/macbookair4_2/mainboard.c +++ b/src/mainboard/apple/macbookair4_2/mainboard.c @@ -18,13 +18,13 @@ #include <ec/acpi/ec.h> #include <console/console.h> -static void mainboard_init(device_t dev) +static void mainboard_init(struct device *dev) { RCBA32(0x38c8) = 0x00002005; RCBA32(0x38c4) = 0x00800000; } -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { dev->ops->init = mainboard_init; |