Do not use devsw() but si_devsw direction. This is still bogus but a

fair bit less so.
This commit is contained in:
Poul-Henning Kamp 2004-09-23 12:19:24 +00:00
parent 5a19f8b0c4
commit d0c90fe668
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135613
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ coda_omount(vfsp, path, data, td)
/*
* See if the device table matches our expectations.
*/
if (devsw(dev)->d_open != vc_nb_open)
if (dev->si_devsw->d_open != vc_nb_open)
{
MARK_INT_FAIL(CODA_MOUNT_STATS);
return(ENXIO);

View File

@ -152,7 +152,7 @@ coda_omount(vfsp, path, data, td)
/*
* See if the device table matches our expectations.
*/
if (devsw(dev)->d_open != vc_nb_open)
if (dev->si_devsw->d_open != vc_nb_open)
{
MARK_INT_FAIL(CODA_MOUNT_STATS);
return(ENXIO);