summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/mach-generic/ide.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-24 22:53:30 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-24 22:53:30 +0200
commitd83b8b85cd56a083d30df73f3fd5e4714591b910 (patch)
tree1fac379e8d909361ecbf934645463a00e706dafc /include/asm-mips/mach-generic/ide.h
parent2c9d86438a0104800da2a8ecdc1e27baf38ba6a4 (diff)
downloadblackbird-op-linux-d83b8b85cd56a083d30df73f3fd5e4714591b910.tar.gz
blackbird-op-linux-d83b8b85cd56a083d30df73f3fd5e4714591b910.zip
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>
Diffstat (limited to 'include/asm-mips/mach-generic/ide.h')
-rw-r--r--include/asm-mips/mach-generic/ide.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/asm-mips/mach-generic/ide.h b/include/asm-mips/mach-generic/ide.h
index f34740ee6775..8ee6bff030d9 100644
--- a/include/asm-mips/mach-generic/ide.h
+++ b/include/asm-mips/mach-generic/ide.h
@@ -19,14 +19,6 @@
#include <linux/stddef.h>
#include <asm/processor.h>
-#ifndef MAX_HWIFS
-# ifdef CONFIG_BLK_DEV_IDEPCI
-#define MAX_HWIFS 10
-# else
-#define MAX_HWIFS 6
-# endif
-#endif
-
static __inline__ int ide_probe_legacy(void)
{
#ifdef CONFIG_PCI
OpenPOWER on IntegriCloud