Staticise the amr devclass.

This commit is contained in:
msmith 2002-01-08 06:47:02 +00:00
parent a855b09ad9
commit e868bf2df8
3 changed files with 3 additions and 5 deletions

View File

@ -343,7 +343,7 @@ int
amr_open(dev_t dev, int flags, int fmt, struct thread *td)
{
int unit = minor(dev);
struct amr_softc *sc = devclass_get_softc(amr_devclass, unit);
struct amr_softc *sc = devclass_get_softc(devclass_find("amr"), unit);
debug_called(1);
@ -358,7 +358,7 @@ int
amr_close(dev_t dev, int flags, int fmt, struct thread *td)
{
int unit = minor(dev);
struct amr_softc *sc = devclass_get_softc(amr_devclass, unit);
struct amr_softc *sc = devclass_get_softc(devclass_find("amr"), unit);
debug_called(1);

View File

@ -83,7 +83,7 @@ static driver_t amr_pci_driver = {
sizeof(struct amr_softc)
};
devclass_t amr_devclass;
static devclass_t amr_devclass;
DRIVER_MODULE(amr, pci, amr_pci_driver, amr_devclass, 0, 0);
static struct

View File

@ -199,8 +199,6 @@ extern int amr_flush(struct amr_softc *sc);
extern int amr_done(struct amr_softc *sc);
extern void amr_startio(struct amr_softc *sc);
extern devclass_t amr_devclass;
/*
* Command buffer allocation.
*/