X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cmd%2Fhost.c;h=eefc4f255ef2fcfe3b69f57cc4ce789ca033bd08;hb=691d719db7183dfb1d1360efed4c5e9f6899095f;hp=080b7cfb1d8243dcfbcb091c704486723a160602;hpb=6baa692f90f398ffe334c1f5668e459cd59a5825;p=oweals%2Fu-boot.git diff --git a/cmd/host.c b/cmd/host.c index 080b7cfb1d..eefc4f255e 100644 --- a/cmd/host.c +++ b/cmd/host.c @@ -1,7 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2012, Google Inc. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -9,6 +8,7 @@ #include #include #include +#include #include static int host_curr_device = -1; @@ -90,7 +90,7 @@ static int do_host_info(cmd_tbl_t *cmdtp, int flag, int argc, struct host_block_dev *host_dev; #ifdef CONFIG_BLK - host_dev = dev_get_priv(blk_dev->bdev); + host_dev = dev_get_platdata(blk_dev->bdev); #else host_dev = blk_dev->priv; #endif @@ -168,11 +168,6 @@ static int do_host(cmd_tbl_t *cmdtp, int flag, int argc, return CMD_RET_USAGE; } -U_BOOT_CMD( - sb, 8, 1, do_host, - "Deprecated: use 'host' command instead.", "" -); - U_BOOT_CMD( host, 8, 1, do_host, "Miscellaneous host commands",