diff options
author | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2022-09-15 18:25:32 +0200 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2022-10-19 19:30:48 +0800 |
commit | 51ead640477fcf084bdddf6738b1d3a54728532c (patch) | |
tree | 2e5d648cbc0a8d56ca68935dc616070cf9f526d6 | |
parent | d842b561bb7ad214935918063d0742c76a589fbe (diff) |
rockchip: puma-rk3399: remove dead code
CONFIG_SERIAL_TAG is not selectable for ARM64 machines. While
get_board_serial is weakly defined if ENV_VARS_UBOOT_RUNTIME_CONFIG is
defined, it is only called when CONFIG_SUPPORT_PASSING_ATAGS is defined,
which also is not selectable for ARM64 machines. Therefore this is dead
code so let's remove it.
Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r-- | board/theobroma-systems/puma_rk3399/puma-rk3399.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/board/theobroma-systems/puma_rk3399/puma-rk3399.c b/board/theobroma-systems/puma_rk3399/puma-rk3399.c index deeba3084a8..3237a6aa2e1 100644 --- a/board/theobroma-systems/puma_rk3399/puma-rk3399.c +++ b/board/theobroma-systems/puma_rk3399/puma-rk3399.c @@ -136,19 +136,3 @@ int misc_init_r(void) return 0; } - -#ifdef CONFIG_SERIAL_TAG -void get_board_serial(struct tag_serialnr *serialnr) -{ - char *serial_string; - u64 serial = 0; - - serial_string = env_get("serial#"); - - if (serial_string) - serial = simple_strtoull(serial_string, NULL, 16); - - serialnr->high = (u32)(serial >> 32); - serialnr->low = (u32)(serial & 0xffffffff); -} -#endif |