Skip to content

Commit

Permalink
ide: fix support for IDE PCI controllers using MMIO on frv
Browse files Browse the repository at this point in the history
Just include <asm-generic/ide_iops.h> for __ide_mm_*() instead of
defining them to normal I/O helpers so PCI bus <-> CPU byte-swapping
is done as needed.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 17, 2008
1 parent 2a2267e commit 30c7ed5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions include/asm-frv/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@
#include <asm/io.h>
#include <asm/irq.h>

/****************************************************************************/
/*
* some bits needed for parts of the IDE subsystem to compile
*/
#define __ide_mm_insw(port, addr, n) insw((unsigned long) (port), addr, n)
#define __ide_mm_insl(port, addr, n) insl((unsigned long) (port), addr, n)
#define __ide_mm_outsw(port, addr, n) outsw((unsigned long) (port), addr, n)
#define __ide_mm_outsl(port, addr, n) outsl((unsigned long) (port), addr, n)

#include <asm-generic/ide_iops.h>

#endif /* __KERNEL__ */
#endif /* _ASM_IDE_H */

0 comments on commit 30c7ed5

Please sign in to comment.