Commit 7d782710 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] asm-ia64/ide.h: use unsigned long instead of ide_ioreg_t

parent 767b80a9
...@@ -25,8 +25,7 @@ ...@@ -25,8 +25,7 @@
# endif # endif
#endif #endif
static __inline__ int static inline int ide_default_irq(unsigned long base)
ide_default_irq (ide_ioreg_t base)
{ {
switch (base) { switch (base) {
case 0x1f0: return isa_irq_to_vector(14); case 0x1f0: return isa_irq_to_vector(14);
...@@ -40,8 +39,7 @@ ide_default_irq (ide_ioreg_t base) ...@@ -40,8 +39,7 @@ ide_default_irq (ide_ioreg_t base)
} }
} }
static __inline__ ide_ioreg_t static inline unsigned long ide_default_io_base(int index)
ide_default_io_base (int index)
{ {
switch (index) { switch (index) {
case 0: return 0x1f0; case 0: return 0x1f0;
...@@ -55,10 +53,10 @@ ide_default_io_base (int index) ...@@ -55,10 +53,10 @@ ide_default_io_base (int index)
} }
} }
static __inline__ void static inline void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port,
ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port, ide_ioreg_t ctrl_port, int *irq) unsigned long ctrl_port, int *irq)
{ {
ide_ioreg_t reg = data_port; unsigned long reg = data_port;
int i; int i;
for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) { for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment