Staticise the amr devclass.
This commit is contained in:
parent
a855b09ad9
commit
e868bf2df8
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user