]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/blk.h
dm: blk: Fix warning on !CONFIG_BLK
[people/ms/u-boot.git] / include / blk.h
index 4d60987f61b459c5edd819e3bf2767c19ea6644c..ef29a07ee260a516e808cc9f172ebfa39c1fb221 100644 (file)
@@ -377,6 +377,13 @@ int blk_find_max_devnum(enum if_type if_type);
  */
 int blk_select_hwpart(struct udevice *dev, int hwpart);
 
+/**
+ * blk_get_from_parent() - obtain a block device by looking up its parent
+ *
+ * All devices with
+ */
+int blk_get_from_parent(struct udevice *parent, struct udevice **devp);
+
 #else
 #include <errno.h>
 /*
@@ -616,11 +623,4 @@ ulong blk_write_devnum(enum if_type if_type, int devnum, lbaint_t start,
  */
 int blk_select_hwpart_devnum(enum if_type if_type, int devnum, int hwpart);
 
-/**
- * blk_get_from_parent() - obtain a block device by looking up its parent
- *
- * All devices with
- */
-int blk_get_from_parent(struct udevice *parent, struct udevice **devp);
-
 #endif