diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-09-06 23:29:52 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-14 10:42:24 -0400 |
commit | 05f84bd2acc698b22395f14b1e78825a6c085d6a (patch) | |
tree | 4ee680370afc0fe4a4070ba82062d66a55a8baa0 /cmd | |
parent | 8658370a92f197aea9f854b2f94a3cd702d2713a (diff) | |
download | u-boot-05f84bd2acc698b22395f14b1e78825a6c085d6a.tar.gz |
cmd: i2c: Remove unused NEEDS_MANUAL_RELOC code bits
The last user of the NEEDS_MANUAL_RELOC has been removed in commit
26af162ac8f8 ("arch: m68k: Implement relocation")
Remove now unused NEEDS_MANUAL_RELOC code.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/i2c.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cmd/i2c.c b/cmd/i2c.c index dd803ee2271..f0a5fa2e741 100644 --- a/cmd/i2c.c +++ b/cmd/i2c.c @@ -1939,16 +1939,6 @@ static struct cmd_tbl cmd_i2c_sub[] = { U_BOOT_CMD_MKENT(speed, 1, 1, do_i2c_bus_speed, "", ""), }; -static __maybe_unused void i2c_reloc(void) -{ - static int relocated; - - if (!relocated) { - fixup_cmdtable(cmd_i2c_sub, ARRAY_SIZE(cmd_i2c_sub)); - relocated = 1; - }; -} - /** * do_i2c() - Handle the "i2c" command-line command * @cmdtp: Command data struct pointer @@ -1963,10 +1953,6 @@ static int do_i2c(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct cmd_tbl *c; -#ifdef CONFIG_NEEDS_MANUAL_RELOC - i2c_reloc(); -#endif - if (argc < 2) return CMD_RET_USAGE; |