Use the argmument `port' instead of hard coded address in atapi_probe.

Submitted by:	kura@melchior.q.t.u-tokyo.ac.jp (Tomohiko Kurahashi)
This commit is contained in:
KATO Takenori 1997-12-04 13:15:16 +00:00
parent 974c421176
commit 4ec099d2b3
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ static struct atapi_params *atapi_probe (int port, int unit)
/* Wait for DRQ deassert. */
for (cnt=2000; cnt>0; --cnt)
if (! (inb (0x640 + AR_STATUS) & ARS_DRQ))
if (! (inb (port + AR_STATUS) & ARS_DRQ))
break;
outb (port + AR_COMMAND, ATAPIC_IDENTIFY);