mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 06:41:39 +00:00
ide: remove IDE_ARCH_INTR (v2)
This micro-optimization is not worth it. Just always check for existence of ->ack_intr method in ide_intr() and ide_timer_expiry(). v2: Fix brown-paper-bag bug spotted by David D. Kilzer. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Michael Schmitz <schmitz@debian.org> Cc: "David D. Kilzer" <ddkilzer@kilzer.net> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
088b1b8860
commit
d15a613ba0
3 changed files with 3 additions and 10 deletions
|
@ -202,11 +202,6 @@ static inline void ide_std_init_ports(hw_regs_t *hw,
|
|||
|
||||
#define MAX_HWIFS 10
|
||||
|
||||
/* Currently only m68k, apus and m8xx need it */
|
||||
#ifndef IDE_ARCH_ACK_INTR
|
||||
# define ide_ack_intr(hwif) (1)
|
||||
#endif
|
||||
|
||||
/* Currently only Atari needs it */
|
||||
#ifndef IDE_ARCH_LOCK
|
||||
# define ide_release_lock() do {} while (0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue