diff options
| author | Bin Meng <[email protected]> | 2018-10-15 02:21:07 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2018-11-14 09:16:27 -0800 |
| commit | d0851c8937067ad396f2bdafc46d0326bf3317db (patch) | |
| tree | ac5d2b7aa32a96f248b61b5559aa3e7fc961e951 /drivers/block/sandbox.c | |
| parent | f26ce03b444ac97448eca0cc58071f5fa8ffc3bd (diff) | |
blk: Call part_init() in the post_probe() method
part_init() is currently called in every DM BLK driver, either
in its bind() or probe() method. However we can use the BLK
uclass driver's post_probe() method to do it automatically.
Update all DM BLK drivers to adopt this change.
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/block/sandbox.c')
| -rw-r--r-- | drivers/block/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index 576d049df77..d3b1aaaba36 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -142,7 +142,7 @@ int host_dev_bind(int devnum, char *filename) goto err_file; } - return blk_prepare_device(dev); + return 0; err_file: os_close(fd); err: |
