Deleted Added
full compact
mcd_isa.c (104519) mcd_isa.c (104545)
1/*
1/*
2 * $FreeBSD: head/sys/dev/mcd/mcd_isa.c 104519 2002-10-05 16:35:33Z phk $
2 * $FreeBSD: head/sys/dev/mcd/mcd_isa.c 104545 2002-10-06 00:19:38Z mdodd $
3 */
4
3 */
4
5#include "opt_geom.h"
6#ifdef NO_GEOM
7
8#include <sys/param.h>
9#include <sys/systm.h>
10#include <sys/kernel.h>
11#include <sys/module.h>
12#include <sys/conf.h>
13#include <sys/fcntl.h>
14#include <sys/bio.h>
15#include <sys/cdio.h>

--- 92 unchanged lines hidden (view full) ---

108mcd_isa_detach (device_t dev)
109{
110 struct mcd_softc * sc;
111 int error;
112
113 sc = device_get_softc(dev);
114 error = 0;
115
5#include <sys/param.h>
6#include <sys/systm.h>
7#include <sys/kernel.h>
8#include <sys/module.h>
9#include <sys/conf.h>
10#include <sys/fcntl.h>
11#include <sys/bio.h>
12#include <sys/cdio.h>

--- 92 unchanged lines hidden (view full) ---

105mcd_isa_detach (device_t dev)
106{
107 struct mcd_softc * sc;
108 int error;
109
110 sc = device_get_softc(dev);
111 error = 0;
112
116 destroy_dev(sc->mcd_dev_t[2]);
117 destroy_dev(sc->mcd_dev_t[1]);
118 destroy_dev(sc->mcd_dev_t[0]);
113 destroy_dev(sc->mcd_dev_t);
119
120 mcd_release_resources(dev);
121
122 return (error);
123}
124
125static int
126mcd_alloc_resources (device_t dev)

--- 80 unchanged lines hidden (view full) ---

207 "mcd",
208 mcd_isa_methods,
209 sizeof(struct mcd_softc)
210};
211
212static devclass_t mcd_devclass;
213
214DRIVER_MODULE(mcd, isa, mcd_isa_driver, mcd_devclass, NULL, 0);
114
115 mcd_release_resources(dev);
116
117 return (error);
118}
119
120static int
121mcd_alloc_resources (device_t dev)

--- 80 unchanged lines hidden (view full) ---

202 "mcd",
203 mcd_isa_methods,
204 sizeof(struct mcd_softc)
205};
206
207static devclass_t mcd_devclass;
208
209DRIVER_MODULE(mcd, isa, mcd_isa_driver, mcd_devclass, NULL, 0);
215
216#endif /* GEOM */