aboutsummaryrefslogtreecommitdiff
path: root/share/examples/drivers
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-09-22 16:10:12 +0000
committerEd Schouten <ed@FreeBSD.org>2008-09-22 16:10:12 +0000
commit30105b9cc7f69182d07d32873d5d2898858c722d (patch)
treea3669b0ad58b3f21de8bb15d9d71256d22c2bf6e /share/examples/drivers
parent663c58007ed3ede48756b13b8377ce7478de628b (diff)
Notes
Diffstat (limited to 'share/examples/drivers')
-rw-r--r--share/examples/drivers/make_pseudo_driver.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/drivers/make_pseudo_driver.sh b/share/examples/drivers/make_pseudo_driver.sh
index a7d49ac1df8a..b620c66215a6 100644
--- a/share/examples/drivers/make_pseudo_driver.sh
+++ b/share/examples/drivers/make_pseudo_driver.sh
@@ -344,7 +344,7 @@ static void
${1}_drvinit(void *unused)
{
int unit;
- sc_p scp = sca[unit];
+ sc_p scp;
for (unit = 0; unit < N${UPPER}; unit++) {
/*
@@ -362,7 +362,7 @@ ${1}_drvinit(void *unused)
}
SYSINIT(${1}dev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR,
- ${1}_drvinit, NULL)
+ ${1}_drvinit, NULL);
DONE
cat >${TOP}/sys/${1}io.h <<DONE