]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: blk: Switch to use platdata_auto_alloc_size for the driver data
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:05 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commit52e3dbbcbda188813dcba7d8afc8da0674ac6f37
tree28cd347b4e8a241d99b1713c7d8c1172f72371c7
parenteb5c9090133f92db1ec46804d69b1a5d695f168d
sandbox: blk: Switch to use platdata_auto_alloc_size for the driver data

Currently the sandbox block driver uses priv_auto_alloc_size for
the driver data, however that's only available after the device
probe phase. In order to make it accessible in an earlier phase,
switch to use platdata_auto_alloc_size instead.

This patch is the prerequisite for the follow up patch of DM BLK
driver changes to work with Sandbox.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/sandbox.c