]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dm: blk: Allow blk_create_device() to allocate the device number
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:28 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit52138fd4072b64448855eac4c2c9815b46f5b43c
treefd5dead396df725150d71861e69d656d22e73dd9
parent199a1201ab901413a80c64a9eee72f82977ba8d3
dm: blk: Allow blk_create_device() to allocate the device number

Allow a devnum parameter of -1 to indicate that the device number should be
alocated automatically. The next highest available device number for that
interface type is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/blk-uclass.c
include/blk.h