diff options
author | Angel Pons <th3fanbus@gmail.com> | 2018-06-24 12:02:59 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-08-10 16:44:17 +0000 |
commit | 940bb4ea422c77126b22b1cb293c5ef794ed071c (patch) | |
tree | 72698a77cabeb3c5ec007df8c798940dcb2bc8ab /src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c | |
parent | dfc30130e94e97d42389e4b7ef7e2227df99cdf7 (diff) |
mb/gigabyte/ga-{h61m-s2pv,b75m-d3h,b75m-d3v}: Clean up mainboard code
I ported ga-h61m-s2pv based on the two Gigabyte b75m boards.
Based on another mainboard's code review comments, this patch
improves the code quality of these three similar boards.
ga-h61m-s2pv is tested and confirmed to be working, but I cannot
say the same regarding the other two mainboards as I do not have them.
Change-Id: Ib7747cceb5ba56f791677204cdc4c54c129c70c3
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/27211
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c')
-rw-r--r-- | src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c b/src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c index 90131ffe08..4e8d9f579f 100644 --- a/src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c +++ b/src/mainboard/gigabyte/ga-b75m-d3h/mainboard.c @@ -15,22 +15,9 @@ * GNU General Public License for more details. */ -#include <types.h> -#include <string.h> #include <device/device.h> -#include <device/pci_def.h> -#include <device/pci_ops.h> -#include <console/console.h> #include <drivers/intel/gma/int15.h> -#include <pc80/mc146818rtc.h> -#include <arch/acpi.h> -#include <arch/io.h> -#include <arch/interrupt.h> -#include <boot/coreboot_tables.h> #include <southbridge/intel/bd82x6x/pch.h> -#include <smbios.h> -#include <device/pci.h> -#include <cbfs.h> static void mainboard_init(struct device *dev) { @@ -75,7 +62,9 @@ static void mainboard_enable(struct device *dev) { dev->ops->init = mainboard_init; - install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_CRT, 0); + install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE, + GMA_INT15_PANEL_FIT_DEFAULT, + GMA_INT15_BOOT_DISPLAY_CRT, 0); } struct chip_operations mainboard_ops = { |