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)
commit8f994c860d91cb40cf1bf6b9c69aeb40d05e9343
tree28cd347b4e8a241d99b1713c7d8c1172f72371c7
parentfa583f86c97f407997f1c46b8009b26c4c58efb9
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