commit | 7c41d143217db6948e34721f77d47f1c44dbd029 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Sat Jun 10 10:01:05 2017 -0400 |
committer | Tom Rini <trini@konsulko.com> | Sat Jun 10 10:01:05 2017 -0400 |
tree | 97c3025f40453c9c96abbaf8a1e66db9947d1894 | |
parent | edee1321103211a88d90f134f8d010f67a1ac09b [diff] |
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 9f103b9cb5f8 ("dm: blk: Add a way to obtain a block device from ...") Signed-off-by: Tom Rini <trini@konsulko.com>