diff options
-rw-r--r-- | sys/dev/iicbus/iic.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index 1c4c856..45d551b 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: iic.c,v 1.1.1.1 1998/09/03 20:51:50 nsouch Exp $ + * $Id: iic.c,v 1.2 1998/09/04 17:53:35 nsouch Exp $ * */ #include <sys/param.h> @@ -90,9 +90,9 @@ static d_write_t iicwrite; static d_read_t iicread; static d_ioctl_t iicioctl; -#define CDEV_MAJOR 25 +#define CDEV_MAJOR 105 static struct cdevsw iic_cdevsw = - { iicopen, iicclose, iicread, iicwrite, /*25*/ + { iicopen, iicclose, iicread, iicwrite, /*105*/ iicioctl, nullstop, nullreset, nodevtotty, /*iic*/ seltrue, nommap, nostrat, "iic", NULL, -1 }; @@ -253,6 +253,5 @@ iic_drvinit(void *unused) CDEV_DRIVER_MODULE(iic, iicbus, iic_driver, iic_devclass, CDEV_MAJOR, iic_cdevsw, 0, 0); -#if 0 + SYSINIT(iicdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,iic_drvinit,NULL) -#endif |