ide: define MAX_HWIFS in <linux/ide.h>
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 24 Jul 2008 20:53:30 +0000 (22:53 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 24 Jul 2008 20:53:30 +0000 (22:53 +0200)
commitd83b8b85cd56a083d30df73f3fd5e4714591b910
tree1fac379e8d909361ecbf934645463a00e706dafc
parent2c9d86438a0104800da2a8ecdc1e27baf38ba6a4
ide: define MAX_HWIFS in <linux/ide.h>

* Now that ide_hwif_t instances are allocated dynamically
  the difference between MAX_HWIFS == 2 and MAX_HWIFS == 10
  is ~100 bytes (x86-32) so use MAX_HWIFS == 10 on all archs
  except these ones that use MAX_HWIFS == 1.

* Define MAX_HWIFS in <linux/ide.h> instead of <asm/ide.h>.

[ Please note that avr32/cris/v850 have no <asm/ide.h>
  and alpha/ia64/sh always define CONFIG_IDE_MAX_HWIFS. ]

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
14 files changed:
include/asm-arm/ide.h
include/asm-blackfin/ide.h
include/asm-frv/ide.h
include/asm-h8300/ide.h
include/asm-m32r/ide.h
include/asm-m68k/ide.h
include/asm-mips/mach-generic/ide.h
include/asm-mn10300/ide.h
include/asm-parisc/ide.h
include/asm-powerpc/ide.h
include/asm-sparc/ide.h
include/asm-x86/ide.h
include/asm-xtensa/ide.h
include/linux/ide.h