dm: core: Add a required struct declaration
authorSimon Glass <sjg@chromium.org>
Mon, 28 Feb 2022 19:08:33 +0000 (12:08 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 6 Apr 2022 18:03:17 +0000 (14:03 -0400)
This file uses struct driver, so declare it at the top in case the
header-inclusion order is not as expected.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/dm/device-internal.h

index c420726..e24b033 100644 (file)
@@ -15,6 +15,7 @@
 #include <dm/ofnode.h>
 
 struct device_node;
+struct driver_info;
 struct udevice;
 
 /*