disk: part: use common api to lookup part driver
authorKever Yang <kever.yang@rock-chips.com>
Sat, 10 Feb 2018 09:55:38 +0000 (17:55 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 14 Mar 2018 01:58:45 +0000 (21:58 -0400)
commit56670d6fb83f3c2f8d9285cc97506541471b43c9
tree22bb6f116763f9aef3952deeaeb0e829d726134b
parentd47292691977fd77f02af44359594e46411f4a63
disk: part: use common api to lookup part driver

Do not need to scan disk every time when we get part info
by name.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
[trini: Fix build in !CONFIG_HAVE_BLOCK_DEVICE case]
Signed-off-by: Tom Rini <trini@konsulko.com>
disk/part.c