Add a module dependency on fdt_slicer. Also, move the PNP_INFO to its more

usual location, down near the DRIVER_MODULE() stuff.
This commit is contained in:
Ian Lepore 2019-02-26 22:52:41 +00:00
parent fb4f7d70c1
commit 33ec975b20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344612

View File

@ -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