summaryrefslogtreecommitdiff
path: root/include/blk.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-10-18 03:30:15 +0200
committerTom Rini <trini@konsulko.com>2024-10-24 11:20:58 -0600
commitdb7e81154ec0bbd62dbb44ac225d22729988078e (patch)
treee81b686e934040b10d59d7644be75756cb73201a /include/blk.h
parent9c19c13bda41b613e7e0e5d48d4d1c95fe8691eb (diff)
block: make blk_create_device() static
There are no users of the blk_create_device() function outside the uclass. Let's make it static. This will ensure that new block drivers will use blk_create_devicef(). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/blk.h')
-rw-r--r--include/blk.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/blk.h b/include/blk.h
index eef6c8629e8..488d04cf32a 100644
--- a/include/blk.h
+++ b/include/blk.h
@@ -380,23 +380,6 @@ int blk_first_device(int uclass_id, struct udevice **devp);
int blk_next_device(struct udevice **devp);
/**
- * blk_create_device() - Create a new block device
- *
- * @parent: Parent of the new device
- * @drv_name: Driver name to use for the block device
- * @name: Name for the device
- * @uclass_id: Interface type (enum uclass_id_t)
- * @devnum: Device number, specific to the interface type, or -1 to
- * allocate the next available number
- * @blksz: Block size of the device in bytes (typically 512)
- * @lba: Total number of blocks of the device
- * @devp: the new device (which has not been probed)
- */
-int blk_create_device(struct udevice *parent, const char *drv_name,
- const char *name, int uclass_id, int devnum, int blksz,
- lbaint_t lba, struct udevice **devp);
-
-/**
* blk_create_devicef() - Create a new named block device
*
* @parent: Parent of the new device