diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-06 11:20:48 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-06 11:20:48 -0500 |
commit | ae86afaee6a1c77c7a06d81dcc3bf872204d3bec (patch) | |
tree | 992b5b436de3033c23c3dc6cd7ded617a4603eed /include | |
parent | bd53cbcce501b61921a1af2dddfa87c5b9923dfd (diff) |
ide: use per-port IRQ handlers
Use hwif instead of hwgroup as {request,free}_irq()'s cookie,
teach ide_intr() to return early for non-active serialized ports,
modify unexpected_intr() accordingly and then use per-port IRQ
handlers instead of per-hwgroup ones.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ide.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 3de13df8bcef..f5382ad0bd4c 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1274,14 +1274,14 @@ extern void ide_stall_queue(ide_drive_t *drive, unsigned long timeout); | |||
1274 | extern void ide_timer_expiry(unsigned long); | 1274 | extern void ide_timer_expiry(unsigned long); |
1275 | extern irqreturn_t ide_intr(int irq, void *dev_id); | 1275 | extern irqreturn_t ide_intr(int irq, void *dev_id); |
1276 | 1276 | ||
1277 | static inline int ide_lock_hwgroup(ide_hwgroup_t *hwgroup) | 1277 | static inline int ide_lock_hwgroup(ide_hwgroup_t *hwgroup, ide_hwif_t *hwif) |
1278 | { | 1278 | { |
1279 | if (hwgroup->busy) | 1279 | if (hwgroup->busy) |
1280 | return 1; | 1280 | return 1; |
1281 | 1281 | ||
1282 | hwgroup->busy = 1; | 1282 | hwgroup->busy = 1; |
1283 | /* for atari only */ | 1283 | /* for atari only */ |
1284 | ide_get_lock(ide_intr, hwgroup); | 1284 | ide_get_lock(ide_intr, hwif); |
1285 | 1285 | ||
1286 | return 0; | 1286 | return 0; |
1287 | } | 1287 | } |