dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 24 Jul 2020 11:12:21 +0000 (14:12 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 6 Aug 2020 18:26:50 +0000 (14:26 -0400)
commit3a4b52a9e5a817e2c19434290c4e1fe1d792cba2
tree6979041519e7ebbf4d26012845051ca568816959
parent1532885c457c594c554b6124ce6dafbe731759c6
dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe

Use IS_ENABLED() instead of #ifdef in blk_post_probe function.

No functional change intended.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
[trini: Fix thinko and use CONFIG_HAVE_BLOCK_DEVICE in IS_ENABLED()]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/block/blk-uclass.c