summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/lenovo/t410/dock.c5
-rw-r--r--src/mainboard/lenovo/t410/mainboard.c1
-rw-r--r--src/mainboard/lenovo/x201/dock.c5
-rw-r--r--src/mainboard/lenovo/x201/mainboard.c2
4 files changed, 6 insertions, 7 deletions
diff --git a/src/mainboard/lenovo/t410/dock.c b/src/mainboard/lenovo/t410/dock.c
index 122376ac05..37a2908c1d 100644
--- a/src/mainboard/lenovo/t410/dock.c
+++ b/src/mainboard/lenovo/t410/dock.c
@@ -7,13 +7,14 @@
#include <ec/lenovo/h8/h8.h>
#include <ec/acpi/ec.h>
-void init_dock(void)
+void h8_mb_init(void)
{
if (dock_present()) {
printk(BIOS_DEBUG, "dock is connected\n");
dock_connect();
- } else
+ } else {
printk(BIOS_DEBUG, "dock is not connected\n");
+ }
}
void dock_connect(void)
diff --git a/src/mainboard/lenovo/t410/mainboard.c b/src/mainboard/lenovo/t410/mainboard.c
index c359173a4a..7953b2e575 100644
--- a/src/mainboard/lenovo/t410/mainboard.c
+++ b/src/mainboard/lenovo/t410/mainboard.c
@@ -10,7 +10,6 @@ static void mainboard_enable(struct device *dev)
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS,
GMA_INT15_PANEL_FIT_DEFAULT,
GMA_INT15_BOOT_DISPLAY_LFP, 2);
- init_dock();
}
struct chip_operations mainboard_ops = {
diff --git a/src/mainboard/lenovo/x201/dock.c b/src/mainboard/lenovo/x201/dock.c
index 258d8f8eaa..7354eeeb41 100644
--- a/src/mainboard/lenovo/x201/dock.c
+++ b/src/mainboard/lenovo/x201/dock.c
@@ -7,13 +7,14 @@
#include <ec/lenovo/h8/h8.h>
#include <ec/acpi/ec.h>
-void init_dock(void)
+void h8_mb_init(void)
{
if (dock_present()) {
printk(BIOS_DEBUG, "dock is connected\n");
dock_connect();
- } else
+ } else {
printk(BIOS_DEBUG, "dock is not connected\n");
+ }
}
void dock_connect(void)
diff --git a/src/mainboard/lenovo/x201/mainboard.c b/src/mainboard/lenovo/x201/mainboard.c
index c35536df2d..beb99385f5 100644
--- a/src/mainboard/lenovo/x201/mainboard.c
+++ b/src/mainboard/lenovo/x201/mainboard.c
@@ -25,8 +25,6 @@ static void mainboard_enable(struct device *dev)
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_INT_LVDS,
GMA_INT15_PANEL_FIT_DEFAULT,
GMA_INT15_BOOT_DISPLAY_LFP, 2);
-
- init_dock();
}
struct chip_operations mainboard_ops = {