imx: nandbcb: add support for writing BCB only
[oweals/u-boot.git] / cmd / host.c
index 080b7cfb1d8243dcfbcb091c704486723a160602..98c4d2a099e972354114d6fcfb0efb158e33dbad 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2012, Google Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -90,7 +89,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 +167,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",