aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2019-02-26 22:52:41 +0000
committerIan Lepore <ian@FreeBSD.org>2019-02-26 22:52:41 +0000
commit33ec975b2032207c766f5f98d9a58ae9dd7d7cb9 (patch)
tree3c71d1923e9dc1f95ffb58d50c37c16543bad07e /sys
parentfb4f7d70c195f390540f52cc9b9f39f617c17e23 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/flash/at45d.c6
1 files changed, 5 insertions, 1 deletions
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
+