Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100133
b: refs/heads/master
c: 5548ed1
h: refs/heads/master
i:
  100131: 8d084b6
v: v3
  • Loading branch information
Ingo Molnar committed Jul 10, 2008
1 parent ee1f7bd commit 94d6152
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 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: 5ab74722a4656612d1f3b087b1afd91133ec0eeb
refs/heads/master: 5548ed1135842d1993a4ba699377a8a3c65dd568
5 changes: 5 additions & 0 deletions trunk/arch/x86/mach-visws/setup_visws.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
char visws_board_type = -1;
char visws_board_rev = -1;

int is_visws_box(void)
{
return visws_board_type >= 0;
}

static int __init visws_time_init_quirk(void)
{
printk(KERN_INFO "Starting Cobalt Timer system clock\n");
Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/x86/pci/visws.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <linux/pci.h>
#include <linux/init.h>

#include <asm/setup.h>
#include "cobalt.h"
#include "lithium.h"

Expand Down Expand Up @@ -107,7 +108,11 @@ static int __init pci_visws_init(void)

static __init int pci_subsys_init(void)
{
return -1;
if (!is_visws_box())
return -1;

pcibios_enable_irq = &pci_visws_enable_irq;
pcibios_disable_irq = &pci_visws_disable_irq;

pci_visws_init();
pcibios_init();
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ void vsmp_init(void);

#ifdef CONFIG_X86_VISWS
extern void visws_early_detect(void);
extern int is_visws_box(void);
#else
static inline void visws_early_detect(void) { }
static inline int is_visws_box(void) { return 0; }
#endif

/*
Expand Down

0 comments on commit 94d6152

Please sign in to comment.