From b40b0a78a3a319b57d7920f57f798e7932eece16 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 12 Jul 2017 20:10:53 +0000 Subject: 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 --- sys/dev/digi/digi.c | 2 ++ sys/dev/ie/if_ie.c | 2 ++ sys/dev/mcd/mcd.c | 2 ++ sys/dev/scd/scd.c | 2 ++ sys/dev/si/si.c | 2 ++ sys/dev/wl/if_wl.c | 2 ++ sys/i386/isa/spic.c | 2 ++ 7 files changed, 14 insertions(+) (limited to 'sys') 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; } -- cgit v1.1