ide: set hwif->expiry prior to calling [__]ide_set_handler()
* Set hwif->expiry prior to calling [__]ide_set_handler() and drop 'expiry' argument. * Set hwif->expiry to NULL in ide_{timer_expiry,intr}() and remove 'hwif->expiry = NULL' assignments. There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -651,6 +651,7 @@ void ide_timer_expiry (unsigned long data)
|
||||
}
|
||||
}
|
||||
hwif->handler = NULL;
|
||||
hwif->expiry = NULL;
|
||||
/*
|
||||
* We need to simulate a real interrupt when invoking
|
||||
* the handler() function, which means we need to
|
||||
@@ -830,6 +831,7 @@ irqreturn_t ide_intr (int irq, void *dev_id)
|
||||
goto out;
|
||||
|
||||
hwif->handler = NULL;
|
||||
hwif->expiry = NULL;
|
||||
hwif->req_gen++;
|
||||
del_timer(&hwif->timer);
|
||||
spin_unlock(&hwif->lock);
|
||||
|
Reference in New Issue
Block a user