diff options
Diffstat (limited to 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/aztcd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/cdrom/aztcd.c b/drivers/cdrom/aztcd.c index e7df93ac6..fe0d33a77 100644 --- a/drivers/cdrom/aztcd.c +++ b/drivers/cdrom/aztcd.c @@ -1726,10 +1726,9 @@ int __init aztcd_init(void) { printk("aztcd: no AZTECH CD-ROM drive found\n"); return -EIO; } - for (count = 0; count < AZT_TIMEOUT; count++); - { count=count*2; /* delay a bit */ - count=count/2; - } + + for (count = 0; count < AZT_TIMEOUT; count++); + if ((st=getAztStatus())==-1) { printk("aztcd: Drive Status Error Status=%x\n",st); return -EIO; |