test/py: test_ut.py: Ensure we use bytes
[oweals/u-boot.git] / drivers / block / blk_legacy.c
index 16d3bfe7f28262f20955ca783d23e1d38d292ffd..0c343f7b6460add4cfd9c3cb2bd1fbb2195640a3 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2016 Google, Inc
  * Written by Simon Glass <sjg@chromium.org>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -69,7 +68,7 @@ static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp)
        return drv->get_dev(devnum, descp);
 }
 
-#ifdef HAVE_BLOCK_DEVICE
+#ifdef CONFIG_HAVE_BLOCK_DEVICE
 int blk_list_part(enum if_type if_type)
 {
        struct blk_driver *drv;
@@ -173,7 +172,7 @@ int blk_show_device(enum if_type if_type, int devnum)
 
        return 0;
 }
-#endif /* HAVE_BLOCK_DEVICE */
+#endif /* CONFIG_HAVE_BLOCK_DEVICE */
 
 struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum)
 {