diff options
| -rw-r--r-- | drivers/ide/ide-io.c | 4 | ||||
| -rw-r--r-- | drivers/ide/ide-probe.c | 2 | ||||
| -rw-r--r-- | include/linux/ide.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 3a234701d92c..6f25da56a169 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c | |||
| @@ -611,9 +611,9 @@ static int drive_is_ready(ide_drive_t *drive) | |||
| 611 | * logic that wants cleaning up. | 611 | * logic that wants cleaning up. |
| 612 | */ | 612 | */ |
| 613 | 613 | ||
| 614 | void ide_timer_expiry (unsigned long data) | 614 | void ide_timer_expiry (struct timer_list *t) |
| 615 | { | 615 | { |
| 616 | ide_hwif_t *hwif = (ide_hwif_t *)data; | 616 | ide_hwif_t *hwif = from_timer(hwif, t, timer); |
| 617 | ide_drive_t *uninitialized_var(drive); | 617 | ide_drive_t *uninitialized_var(drive); |
| 618 | ide_handler_t *handler; | 618 | ide_handler_t *handler; |
| 619 | unsigned long flags; | 619 | unsigned long flags; |
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 01b2adfd8226..27a2488c7468 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
| @@ -1184,7 +1184,7 @@ static void ide_init_port_data(ide_hwif_t *hwif, unsigned int index) | |||
| 1184 | 1184 | ||
| 1185 | spin_lock_init(&hwif->lock); | 1185 | spin_lock_init(&hwif->lock); |
| 1186 | 1186 | ||
| 1187 | setup_timer(&hwif->timer, &ide_timer_expiry, (unsigned long)hwif); | 1187 | timer_setup(&hwif->timer, ide_timer_expiry, 0); |
| 1188 | 1188 | ||
| 1189 | init_completion(&hwif->gendev_rel_comp); | 1189 | init_completion(&hwif->gendev_rel_comp); |
| 1190 | 1190 | ||
diff --git a/include/linux/ide.h b/include/linux/ide.h index dc152e4b7f73..cc412175d036 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
| @@ -1211,7 +1211,7 @@ extern int ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout); | |||
| 1211 | 1211 | ||
| 1212 | extern void ide_stall_queue(ide_drive_t *drive, unsigned long timeout); | 1212 | extern void ide_stall_queue(ide_drive_t *drive, unsigned long timeout); |
| 1213 | 1213 | ||
| 1214 | extern void ide_timer_expiry(unsigned long); | 1214 | extern void ide_timer_expiry(struct timer_list *t); |
| 1215 | extern irqreturn_t ide_intr(int irq, void *dev_id); | 1215 | extern irqreturn_t ide_intr(int irq, void *dev_id); |
| 1216 | extern void do_ide_request(struct request_queue *); | 1216 | extern void do_ide_request(struct request_queue *); |
| 1217 | extern void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq); | 1217 | extern void ide_requeue_and_plug(ide_drive_t *drive, struct request *rq); |
