summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2017-07-12 20:10:53 +0000
committerjhb <jhb@FreeBSD.org>2017-07-12 20:10:53 +0000
commitb40b0a78a3a319b57d7920f57f798e7932eece16 (patch)
tree973a4861cc9d78e7c8a56ef2536505089b726bc8 /sys
parent9de5b2dbb7badfffac15ac544e5d943dc4d6686b (diff)
downloadFreeBSD-src-b40b0a78a3a319b57d7920f57f798e7932eece16.zip
FreeBSD-src-b40b0a78a3a319b57d7920f57f798e7932eece16.tar.gz
Add deprecation notices for various device drivers removed in 12.0.
This is a direct commit to stable/11 since these files have already been removed in head. Reviewed by: sbruno, gjb Differential Revision: https://reviews.freebsd.org/D11542
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/digi/digi.c2
-rw-r--r--sys/dev/ie/if_ie.c2
-rw-r--r--sys/dev/mcd/mcd.c2
-rw-r--r--sys/dev/scd/scd.c2
-rw-r--r--sys/dev/si/si.c2
-rw-r--r--sys/dev/wl/if_wl.c2
-rw-r--r--sys/i386/isa/spic.c2
7 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/digi/digi.c b/sys/dev/digi/digi.c
index b8ede24..3518ae4 100644
--- a/sys/dev/digi/digi.c
+++ b/sys/dev/digi/digi.c
@@ -1458,6 +1458,8 @@ digi_attach(struct digi_softc *sc)
digi_loadmoduledata(sc);
digi_init(sc);
digi_freemoduledata(sc);
+ device_printf(dev,
+ "WARNING: This driver is deprecated and will be removed.\n");
return (0);
}
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c
index dc7a868..657532b 100644
--- a/sys/dev/ie/if_ie.c
+++ b/sys/dev/ie/if_ie.c
@@ -327,6 +327,8 @@ ie_attach(device_t dev)
mtx_destroy(&sc->lock);
return (error);
}
+ device_printf(dev,
+ "WARNING: This driver is deprecated and will be removed.\n");
return (0);
}
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c
index dacbb3d..2ce41bb 100644
--- a/sys/dev/mcd/mcd.c
+++ b/sys/dev/mcd/mcd.c
@@ -209,6 +209,8 @@ mcd_attach(struct mcd_softc *sc)
sc->mcd_dev_t->si_drv1 = (void *)sc;
callout_init_mtx(&sc->timer, &sc->mtx, 0);
+ device_printf(sc->dev,
+ "WARNING: This driver is deprecated and will be removed.\n");
return (0);
}
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c
index e84a707..1124bff 100644
--- a/sys/dev/scd/scd.c
+++ b/sys/dev/scd/scd.c
@@ -174,6 +174,8 @@ scd_attach(struct scd_softc *sc)
sc->scd_dev_t = make_dev(&scd_cdevsw, 8 * unit,
UID_ROOT, GID_OPERATOR, 0640, "scd%d", unit);
sc->scd_dev_t->si_drv1 = (void *)sc;
+ device_printf(sc->dev,
+ "WARNING: This driver is deprecated and will be removed.\n");
return (0);
}
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 5c2ccbb..5094aaf 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -604,6 +604,8 @@ try_next2:
if (unit == 0)
make_dev(&si_Scdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
"si_control");
+ device_printf(dev,
+ "WARNING: This driver is deprecated and will be removed.\n");
return (0);
}
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index 08d0fc8..647e20e 100644
--- a/sys/dev/wl/if_wl.c
+++ b/sys/dev/wl/if_wl.c
@@ -564,6 +564,8 @@ wlattach(device_t device)
if (bootverbose)
wldump(sc);
+ device_printf(device,
+ "WARNING: This driver is deprecated and will be removed.\n");
return (0);
}
diff --git a/sys/i386/isa/spic.c b/sys/i386/isa/spic.c
index 2444333..ca11d62 100644
--- a/sys/i386/isa/spic.c
+++ b/sys/i386/isa/spic.c
@@ -350,6 +350,8 @@ spic_attach(device_t dev)
/* There can be only one */
sc->sc_cdev = make_dev(&spic_cdevsw, 0, 0, 0, 0600, "jogdial");
sc->sc_cdev->si_drv1 = sc;
+ device_printf(dev,
+ "WARNING: This driver is deprecated and will be removed.\n");
return 0;
}
OpenPOWER on IntegriCloud