From a2e282b06a945ba7b3cbc73b5eeda9d55e6ceaf8 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Fri, 4 May 2018 19:53:02 +0200 Subject: mb/apple: Get rid of device_t Use of device_t has been abandoned in ramstage. Change-Id: I14d82b0463d184ae89d7137f2dc6732bbb608b73 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26074 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/mainboard/apple/macbook21/mainboard.c | 4 ++-- src/mainboard/apple/macbookair4_2/mainboard.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 #include -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; -- cgit v1.2.3