Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114199
b: refs/heads/master
c: cf40491
h: refs/heads/master
i:
  114197: 8da584b
  114195: 526b835
  114191: fe18580
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 13, 2008
1 parent e9a8f72 commit 0bebe0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 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: 6ccc6d7ecbb427580d045699e434bc5c6f45e227
refs/heads/master: cf4049103be931fca133f66b3181490284a521c6
29 changes: 0 additions & 29 deletions trunk/arch/mips/include/asm/mach-generic/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,6 @@
#include <linux/stddef.h>
#include <asm/processor.h>

static __inline__ int ide_probe_legacy(void)
{
#ifdef CONFIG_PCI
struct pci_dev *dev;
/*
* This can be called on the ide_setup() path, super-early in
* boot. But the down_read() will enable local interrupts,
* which can cause some machines to crash. So here we detect
* and flag that situation and bail out early.
*/
if (no_pci_devices())
return 0;
dev = pci_get_class(PCI_CLASS_BRIDGE_EISA << 8, NULL);
if (dev)
goto found;
dev = pci_get_class(PCI_CLASS_BRIDGE_ISA << 8, NULL);
if (dev)
goto found;
return 0;
found:
pci_dev_put(dev);
return 1;
#elif defined(CONFIG_EISA) || defined(CONFIG_ISA)
return 1;
#else
return 0;
#endif
}

/* MIPS port and memory-mapped I/O string operations. */
static inline void __ide_flush_prologue(void)
{
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/ide/ide-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ static int __init ide_generic_init(void)
unsigned long io_addr;
int i, rc = 0, primary = 0, secondary = 0;

#ifdef CONFIG_MIPS
if (!ide_probe_legacy())
return -ENODEV;
#endif
ide_generic_check_pci_legacy_iobases(&primary, &secondary);

if (!probe_mask) {
Expand Down

0 comments on commit 0bebe0b

Please sign in to comment.