Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38027
b: refs/heads/master
c: 83d7dbc
h: refs/heads/master
i:
  38025: e286a5c
  38023: 1527686
v: v3
  • Loading branch information
Matt Mackall authored and Linus Torvalds committed Oct 3, 2006
1 parent 8dcc371 commit 6106cfc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce42f19137225d01be9388a73703df40fb7af80f
refs/heads/master: 83d7dbc4095a0c314b191c573be5fb4fa6ce0897
2 changes: 1 addition & 1 deletion trunk/drivers/ide/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if IDE

config IDE_MAX_HWIFS
int "Max IDE interfaces"
depends on ALPHA || SUPERH || IA64
depends on ALPHA || SUPERH || IA64 || EMBEDDED
default 4
help
This is the maximum number of IDE hardware interfaces that will
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static ide_hwif_t *ide_match_hwif(unsigned long io_base, u8 bootable, const char
return hwif; /* pick an unused entry */
}
}
for (h = 0; h < 2; ++h) {
for (h = 0; h < 2 && h < MAX_HWIFS; ++h) {
hwif = ide_hwifs + h;
if (hwif->chipset == ide_unknown)
return hwif; /* pick an unused entry */
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ static inline void ide_std_init_ports(hw_regs_t *hw,

#include <asm/ide.h>

#ifndef MAX_HWIFS
#if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED)
#undef MAX_HWIFS
#define MAX_HWIFS CONFIG_IDE_MAX_HWIFS
#endif

Expand Down

0 comments on commit 6106cfc

Please sign in to comment.