svn commit: r344612 - head/sys/dev/flash
Ian Lepore
ian at FreeBSD.org
Tue Feb 26 22:52:42 UTC 2019
Author: ian
Date: Tue Feb 26 22:52:41 2019
New Revision: 344612
URL: https://svnweb.freebsd.org/changeset/base/344612
Log:
Add a module dependency on fdt_slicer. Also, move the PNP_INFO to its more
usual location, down near the DRIVER_MODULE() stuff.
Modified:
head/sys/dev/flash/at45d.c
Modified: head/sys/dev/flash/at45d.c
==============================================================================
--- head/sys/dev/flash/at45d.c Tue Feb 26 22:52:08 2019 (r344611)
+++ head/sys/dev/flash/at45d.c Tue Feb 26 22:52:41 2019 (r344612)
@@ -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
+
More information about the svn-src-head
mailing list