Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243076
b: refs/heads/master
c: af96f87
h: refs/heads/master
v: v3
  • Loading branch information
Corentin Chary authored and Matthew Garrett committed Mar 28, 2011
1 parent e05d046 commit 3beddd8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77ca5b0197138db1260bbbb95ce3fd015dd10437
refs/heads/master: af96f87703f33a4dba4b51c7b3f0d6f874aa4853
17 changes: 17 additions & 0 deletions trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <linux/input/sparse-keymap.h>
#include <linux/rfkill.h>
#include <linux/slab.h>
#include <linux/dmi.h>
#include <acpi/acpi_drivers.h>
#include <acpi/acpi_bus.h>

Expand Down Expand Up @@ -1557,6 +1558,20 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus)
return result;
}

static void __devinit asus_dmi_check(void)
{
const char *model;

model = dmi_get_system_info(DMI_PRODUCT_NAME);
if (!model)
return;

/* On L1400B WLED control the sound card, don't mess with it ... */
if (strncmp(model, "L1400B", 6) == 0) {
wlan_status = -1;
}
}

static bool asus_device_present;

static int __devinit asus_acpi_add(struct acpi_device *device)
Expand All @@ -1575,6 +1590,8 @@ static int __devinit asus_acpi_add(struct acpi_device *device)
device->driver_data = asus;
asus->device = device;

asus_dmi_check();

result = asus_acpi_init(asus);
if (result)
goto fail_platform;
Expand Down

0 comments on commit 3beddd8

Please sign in to comment.