From 7de871aa81ddbeb9545b5dc00d9dcdd94da94db3 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 14 Jun 2018 19:01:40 +0000 Subject: [PATCH] mx25l: compat_data is only defined when FDT is Reported by: O. Hartmann --- sys/dev/flash/mx25l.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/flash/mx25l.c b/sys/dev/flash/mx25l.c index a8ac74d02f55..8430ea60d26c 100644 --- a/sys/dev/flash/mx25l.c +++ b/sys/dev/flash/mx25l.c @@ -684,4 +684,6 @@ static driver_t mx25l_driver = { DRIVER_MODULE(mx25l, spibus, mx25l_driver, mx25l_devclass, 0, 0); MODULE_DEPEND(mx25l, spibus, 1, 1, 1); +#ifdef FDT SPIBUS_PNP_INFO(compat_data); +#endif