]> git.sur5r.net Git - u-boot/commitdiff
trats2: Code cleanup.
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 22 Jan 2014 10:24:11 +0000 (11:24 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 3 Feb 2014 06:36:14 +0000 (15:36 +0900)
Remove wrong and unused env variables
Trats2 is not as GT-I8800.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Piotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/trats2/trats2.c
drivers/power/battery/bat_trats2.c
include/power/max77686_pmic.h

index 1e96fdc6af981f68c4c648d0ea9508dd33a49e7b..feb6c4cccd237744f3d42d51a372a37bd38e761d 100644 (file)
@@ -72,15 +72,12 @@ static void check_hw_revision(void)
 int checkboard(void)
 {
        puts("Board:\tTRATS2\n");
+       printf("HW Revision:\t0x%04x\n", board_rev);
+
        return 0;
 }
 #endif
 
-static void show_hw_revision(void)
-{
-       printf("HW Revision:\t0x%04x\n", board_rev);
-}
-
 u32 get_board_rev(void)
 {
        return board_rev;
@@ -618,11 +615,6 @@ void init_panel_info(vidinfo_t *vid)
 #ifdef CONFIG_MISC_INIT_R
 int misc_init_r(void)
 {
-       setenv("model", "GT-I8800");
-       setenv("board", "TRATS2");
-
-       show_hw_revision();
-
        return 0;
 }
 #endif
index f2648329d4d761b84cc3f87af74ad54f85dcdb49..94015aa41a14db1fb64e16aab3b5f51c6c874ffc 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <power/pmic.h>
 #include <power/battery.h>
-#include <power/max8997_pmic.h>
+#include <power/max77693_pmic.h>
 #include <errno.h>
 
 static struct battery battery_trats;
index 16e90160894d2d3fee30e182b9758e663751f092..c2a772a8951eea4a2373eef22e849bb745d83e90 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef __MAX77686_H_
 #define __MAX77686_H_
 
+#include <power/pmic.h>
+
 enum {
        MAX77686_REG_PMIC_ID            = 0x0,
        MAX77686_REG_PMIC_INTSRC,