common: Drop init.h from common header
[oweals/u-boot.git] / cmd / host.c
index 645dba4de831f2733a64c88d04ddc890436074b0..eefc4f255ef2fcfe3b69f57cc4ce789ca033bd08 100644 (file)
@@ -8,6 +8,7 @@
 #include <fs.h>
 #include <part.h>
 #include <sandboxblockdev.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 
 static int host_curr_device = -1;
@@ -89,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
@@ -167,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",