aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>1999-09-26 03:22:34 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>1999-09-26 03:22:34 +0000
commit29a7ea851d9cf24086c54b34ee3cca994d55c140 (patch)
tree02ed2d05fc5acc4ac2d60adfaa4550141f9874d3 /sys
parentb22d0128a48752102c5c6f1d60fdfc6059932283 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/pc98/pcaudio.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/pc98/pc98/pcaudio.c b/sys/pc98/pc98/pcaudio.c
index d56a441fa032..55bd9f4458d7 100644
--- a/sys/pc98/pc98/pcaudio.c
+++ b/sys/pc98/pc98/pcaudio.c
@@ -194,6 +194,7 @@ pca_volume(int volume)
static void
pca_init(void)
{
+ cdevsw_add(&pca_cdevsw);
pca_status.open = 0;
pca_status.queries = 0;
pca_status.timer_on = 0;
@@ -584,17 +585,4 @@ pcapoll(dev_t dev, int events, struct proc *p)
return (revents);
}
-static int pca_devsw_installed;
-
-static void pca_drvinit(void *unused)
-{
-
- if( ! pca_devsw_installed ) {
- cdevsw_add(&pca_cdevsw);
- pca_devsw_installed = 1;
- }
-}
-
-SYSINIT(pcadev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,pca_drvinit,NULL)
-
#endif