From 33ec975b2032207c766f5f98d9a58ae9dd7d7cb9 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Tue, 26 Feb 2019 22:52:41 +0000 Subject: Add a module dependency on fdt_slicer. Also, move the PNP_INFO to its more usual location, down near the DRIVER_MODULE() stuff. --- sys/dev/flash/at45d.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/dev/flash') diff --git a/sys/dev/flash/at45d.c b/sys/dev/flash/at45d.c index 8acf2b95f95e..d04aad472f8a 100644 --- a/sys/dev/flash/at45d.c +++ b/sys/dev/flash/at45d.c @@ -60,7 +60,6 @@ static struct ofw_compat_data compat_data[] = { { "atmel,dataflash", 1 }, { NULL, 0 }, }; -SPIBUS_PNP_INFO(compat_data); #endif /* This is the information returned by the MANUFACTURER_ID command. */ @@ -556,3 +555,8 @@ static driver_t at45d_driver = { DRIVER_MODULE(at45d, spibus, at45d_driver, at45d_devclass, NULL, NULL); MODULE_DEPEND(at45d, spibus, 1, 1, 1); +#ifdef FDT +MODULE_DEPEND(at45d, fdt_slicer, 1, 1, 1); +SPIBUS_PNP_INFO(compat_data); +#endif + -- cgit v1.3