Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30775
b: refs/heads/master
c: 9b170b8
h: refs/heads/master
i:
  30773: 2edb7de
  30771: 8e1a933
  30767: 39c0a83
v: v3
  • Loading branch information
Jim Cromie authored and Linus Torvalds committed Jun 28, 2006
1 parent 203d71f commit f2f08bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 9550a339e1ab1709dd53d92a1b76eecae2df9f3c
refs/heads/master: 9b170b8fdbd14a197ad26b4354f3810c65a96602
15 changes: 10 additions & 5 deletions trunk/arch/i386/kernel/scx200.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,17 @@ static struct pci_driver scx200_pci_driver = {

static DEFINE_SPINLOCK(scx200_gpio_config_lock);

static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
static void __devinit scx200_init_shadow(void)
{
int bank;

/* read the current values driven on the GPIO signals */
for (bank = 0; bank < 2; ++bank)
scx200_gpio_shadow[bank] = inl(scx200_gpio_base + 0x10 * bank);
}

static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
unsigned base;

if (pdev->device == PCI_DEVICE_ID_NS_SCx200_BRIDGE ||
Expand All @@ -63,10 +71,7 @@ static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_
}

scx200_gpio_base = base;

/* read the current values driven on the GPIO signals */
for (bank = 0; bank < 2; ++bank)
scx200_gpio_shadow[bank] = inl(scx200_gpio_base + 0x10 * bank);
scx200_init_shadow();

} else {
/* find the base of the Configuration Block */
Expand Down

0 comments on commit f2f08bf

Please sign in to comment.