Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46445
b: refs/heads/master
c: 54a0700
h: refs/heads/master
i:
  46443: dfe76f9
v: v3
  • Loading branch information
Li Shaohua authored and Len Brown committed Dec 16, 2006
1 parent a167cf2 commit e080e3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 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: 96333578b023957537c3e98b50af7f3b7e08e411
refs/heads/master: 54a07001b9efb6a3bb9a9d8ac9ddb226e29b5406
19 changes: 4 additions & 15 deletions trunk/drivers/acpi/motherboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
ACPI_MODULE_NAME("acpi_motherboard")

/* Dell use PNP0C01 instead of PNP0C02 */
#define ACPI_MB_HID1 "PNP0C01"
#define ACPI_MB_HID2 "PNP0C02"
#define ACPI_MB_HID "PNP0C01,PNP0C02"
/**
* Doesn't care about legacy IO ports, only IO ports beyond 0x1000 are reserved
* Doesn't care about the failure of 'request_region', since other may reserve
Expand Down Expand Up @@ -110,19 +109,10 @@ static int acpi_motherboard_add(struct acpi_device *device)
return 0;
}

static struct acpi_driver acpi_motherboard_driver1 = {
static struct acpi_driver acpi_motherboard_driver = {
.name = "motherboard",
.class = "",
.ids = ACPI_MB_HID1,
.ops = {
.add = acpi_motherboard_add,
},
};

static struct acpi_driver acpi_motherboard_driver2 = {
.name = "motherboard",
.class = "",
.ids = ACPI_MB_HID2,
.ids = ACPI_MB_HID,
.ops = {
.add = acpi_motherboard_add,
},
Expand Down Expand Up @@ -173,8 +163,7 @@ static void __init acpi_reserve_resources(void)

static int __init acpi_motherboard_init(void)
{
acpi_bus_register_driver(&acpi_motherboard_driver1);
acpi_bus_register_driver(&acpi_motherboard_driver2);
acpi_bus_register_driver(&acpi_motherboard_driver);
/*
* Guarantee motherboard IO reservation first
* This module must run after scan.c
Expand Down

0 comments on commit e080e3a

Please sign in to comment.