block: ide: Fix block read/write with driver model
authorBin Meng <bmeng.cn@gmail.com>
Sun, 10 Sep 2017 12:12:51 +0000 (05:12 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 10 Sep 2017 16:27:37 +0000 (12:27 -0400)
commit68e6f221ed08674374dc397fe52a64817599fce7
tree0aba1a5779ed24c9d978c985bbe3fd071abc98fb
parenteb81b1a4d3f996072e08b790018edd750210a8c1
block: ide: Fix block read/write with driver model

This converts the IDE driver to driver model so that block read and
write are fully functional.

Fixes: b7c6baef ("x86: Convert MMC to driver model")
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/block/blk-uclass.c
drivers/block/ide.c
include/dm/uclass-id.h