Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87105
b: refs/heads/master
c: ef82710
h: refs/heads/master
i:
  87103: 44e324d
v: v3
  • Loading branch information
Roland Dreier authored and Wim Van Sebroeck committed Mar 6, 2008
1 parent 47c7c31 commit c444c2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 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: 103018aca2e4ba0d0e230efa864231c59228f419
refs/heads/master: ef82710a3f80cd24d459c508f91542ecccb1f340
19 changes: 8 additions & 11 deletions trunk/drivers/watchdog/hpwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,35 +528,32 @@ static int __devinit smbios_present(const char __iomem *p)
return -ENODEV;
}

static int __devinit smbios_scan_machine(void)
static void __devinit smbios_scan_machine(void)
{
char __iomem *p, *q;
int rc;

if (efi_enabled) {
if (efi.smbios == EFI_INVALID_TABLE_ADDR)
return -ENODEV;
return;

p = ioremap(efi.smbios, 32);
if (p == NULL)
return -ENOMEM;
return;

rc = smbios_present(p);
smbios_present(p);
iounmap(p);
} else {
/*
* Search from 0x0f0000 through 0x0fffff, inclusive.
*/
p = ioremap(PCI_ROM_BASE1, ROM_SIZE);
if (p == NULL)
return -ENOMEM;
return;

for (q = p; q < p + ROM_SIZE; q += 16) {
rc = smbios_present(q);
if (!rc) {
for (q = p; q < p + ROM_SIZE; q += 16)
if (!smbios_present(q))
break;
}
}

iounmap(p);
}
}
Expand Down

0 comments on commit c444c2f

Please sign in to comment.