diff options
author | Li Shaohua <shaohua.li@intel.com> | 2006-12-07 07:56:51 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-15 23:38:35 -0500 |
commit | 54a07001b9efb6a3bb9a9d8ac9ddb226e29b5406 (patch) | |
tree | 1614c0b44b2020c680d2bdddb8e6db80db62315e /drivers | |
parent | 96333578b023957537c3e98b50af7f3b7e08e411 (diff) |
ACPI: consolidate two motherboard drivers into one
Consolidate motherboard1 and motherboard2 drivers into one
so that driver core doesn't complain that two drivers have
the same name.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/motherboard.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/drivers/acpi/motherboard.c b/drivers/acpi/motherboard.c index 2e17ec75af03..bedb5118e312 100644 --- a/drivers/acpi/motherboard.c +++ b/drivers/acpi/motherboard.c | |||
@@ -33,8 +33,7 @@ | |||
33 | ACPI_MODULE_NAME("acpi_motherboard") | 33 | ACPI_MODULE_NAME("acpi_motherboard") |
34 | 34 | ||
35 | /* Dell use PNP0C01 instead of PNP0C02 */ | 35 | /* Dell use PNP0C01 instead of PNP0C02 */ |
36 | #define ACPI_MB_HID1 "PNP0C01" | 36 | #define ACPI_MB_HID "PNP0C01,PNP0C02" |
37 | #define ACPI_MB_HID2 "PNP0C02" | ||
38 | /** | 37 | /** |
39 | * Doesn't care about legacy IO ports, only IO ports beyond 0x1000 are reserved | 38 | * Doesn't care about legacy IO ports, only IO ports beyond 0x1000 are reserved |
40 | * Doesn't care about the failure of 'request_region', since other may reserve | 39 | * Doesn't care about the failure of 'request_region', since other may reserve |
@@ -110,19 +109,10 @@ static int acpi_motherboard_add(struct acpi_device *device) | |||
110 | return 0; | 109 | return 0; |
111 | } | 110 | } |
112 | 111 | ||
113 | static struct acpi_driver acpi_motherboard_driver1 = { | 112 | static struct acpi_driver acpi_motherboard_driver = { |
114 | .name = "motherboard", | 113 | .name = "motherboard", |
115 | .class = "", | 114 | .class = "", |
116 | .ids = ACPI_MB_HID1, | 115 | .ids = ACPI_MB_HID, |
117 | .ops = { | ||
118 | .add = acpi_motherboard_add, | ||
119 | }, | ||
120 | }; | ||
121 | |||
122 | static struct acpi_driver acpi_motherboard_driver2 = { | ||
123 | .name = "motherboard", | ||
124 | .class = "", | ||
125 | .ids = ACPI_MB_HID2, | ||
126 | .ops = { | 116 | .ops = { |
127 | .add = acpi_motherboard_add, | 117 | .add = acpi_motherboard_add, |
128 | }, | 118 | }, |
@@ -173,8 +163,7 @@ static void __init acpi_reserve_resources(void) | |||
173 | 163 | ||
174 | static int __init acpi_motherboard_init(void) | 164 | static int __init acpi_motherboard_init(void) |
175 | { | 165 | { |
176 | acpi_bus_register_driver(&acpi_motherboard_driver1); | 166 | acpi_bus_register_driver(&acpi_motherboard_driver); |
177 | acpi_bus_register_driver(&acpi_motherboard_driver2); | ||
178 | /* | 167 | /* |
179 | * Guarantee motherboard IO reservation first | 168 | * Guarantee motherboard IO reservation first |
180 | * This module must run after scan.c | 169 | * This module must run after scan.c |