efi_driver: blk: Switch to use platdata_auto_alloc_size for the driver data
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:06 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commitf26ce03b444ac97448eca0cc58071f5fa8ffc3bd
tree618078ba11d28b94322b0e7b9f7c8a3c7b9f0369
parent8f994c860d91cb40cf1bf6b9c69aeb40d05e9343
efi_driver: blk: Switch to use platdata_auto_alloc_size for the driver data

Currently the efi 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 EFI loader.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/efi_driver/efi_block_device.c