From 5c68be59c8f5dbbddabc4c1144be8be6bfd30464 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 18 Apr 2020 02:53:19 +0000 Subject: [PATCH] Add deprecation notice to amr(4) --- share/man/man4/amr.4 | 5 +++++ sys/dev/amr/amr_pci.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/share/man/man4/amr.4 b/share/man/man4/amr.4 index 1a38ee98cad..8ef14dfd1d9 100644 --- a/share/man/man4/amr.4 +++ b/share/man/man4/amr.4 @@ -45,6 +45,11 @@ module at boot time, place the following line in .Bd -literal -offset indent amr_load="YES" .Ed +.Sh DEPRECATION NOTICE +The +.Nm +driver is not present in +.Fx 13.0 . .Sh DESCRIPTION The .Nm diff --git a/sys/dev/amr/amr_pci.c b/sys/dev/amr/amr_pci.c index 25b37eda389..0c2231b9377 100644 --- a/sys/dev/amr/amr_pci.c +++ b/sys/dev/amr/amr_pci.c @@ -341,6 +341,8 @@ amr_pci_attach(device_t dev) out: if (error) amr_pci_free(sc); + else + gone_in_dev(dev, 13, "amr(4) driver"); return(error); }