]> git.baikalelectronics.ru Git - uboot.git/commit
dm: blk: Fix warning on !CONFIG_BLK
authorTom Rini <trini@konsulko.com>
Sat, 10 Jun 2017 14:01:05 +0000 (10:01 -0400)
committerTom Rini <trini@konsulko.com>
Sat, 10 Jun 2017 14:01:05 +0000 (10:01 -0400)
commit65f7463d48ece6f26ed1aef49c68dad79062f38f
tree97c3025f40453c9c96abbaf8a1e66db9947d1894
parent4e623209d705130548afc3cb4afced090a802e5c
dm: blk: Fix warning on !CONFIG_BLK

When we don't have CONFIG_BLK defined we don't have a forward
declaration of struct udevice, and thus get a warning about it on
blk_get_from_parent(), which we only have when CONFIG_BLK is set.  Move
the declaration of blk_get_from_parent() to be with the other CONFIG_BLK
parts.

Fixes f9c583af6943 ("dm: blk: Add a way to obtain a block device from ...")
Signed-off-by: Tom Rini <trini@konsulko.com>
include/blk.h