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:
parent
fb4f7d70c1
commit
33ec975b20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344612
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user