View | Details | Raw Unified | Return to bug 20348
Collapse All | Expand All

(-)sys/isa/fd.c (-1 / +5 lines)
Lines 1048-1057 Link Here
1048
	int	typemynor;
1048
	int	typemynor;
1049
	int	typesize;
1049
	int	typesize;
1050
#endif
1050
#endif
1051
	static char cdevsw_add_done = 0;
1051
1052
1052
	fd = device_get_softc(dev);
1053
	fd = device_get_softc(dev);
1053
1054
1054
	cdevsw_add(&fd_cdevsw);	/* XXX */
1055
	if (!cdevsw_add_done) {
1056
		cdevsw_add(&fd_cdevsw);	/* XXX */
1057
		cdevsw_add_done++;
1058
	}
1055
	make_dev(&fd_cdevsw, (fd->fdu << 6),
1059
	make_dev(&fd_cdevsw, (fd->fdu << 6),
1056
		UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
1060
		UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);

Return to bug 20348