summaryrefslogtreecommitdiff
path: root/sys/dev/phy
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-03 17:50:35 -0400
committerIan Moffett <ian@osmora.org>2025-07-03 17:51:02 -0400
commit8378d14cc0f4996080e21c84491ba9b8fcb679a4 (patch)
treeffbf2f0bfa473003ff1b6992fea685a2860f285f /sys/dev/phy
parent197b0ecd37e8c41015586ee9711c807b9b625b0b (diff)
kernel: driver: Assign names to all drivers
Assign a name to each driver through the DRIVER_EXPORT() or DRIVER_DEFER() macros. This can be used for blacklisting driver startups. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/phy')
-rw-r--r--sys/dev/phy/e1000.c2
-rw-r--r--sys/dev/phy/rtl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/phy/e1000.c b/sys/dev/phy/e1000.c
index 95efe6d..41a2a27 100644
--- a/sys/dev/phy/e1000.c
+++ b/sys/dev/phy/e1000.c
@@ -355,4 +355,4 @@ e1000_init(void)
return 0;
}
-DRIVER_EXPORT(e1000_init);
+DRIVER_EXPORT(e1000_init, "e1000");
diff --git a/sys/dev/phy/rtl.c b/sys/dev/phy/rtl.c
index 691f767..d096d1a 100644
--- a/sys/dev/phy/rtl.c
+++ b/sys/dev/phy/rtl.c
@@ -440,4 +440,4 @@ rt81xx_init(void)
return rt_init_mac();
}
-DRIVER_DEFER(rt81xx_init);
+DRIVER_DEFER(rt81xx_init, "rtl81xx");