diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
commit | a215aa7b9ab3759c047201199fba64d3042d7f13 (patch) | |
tree | bca37493d9b2233450e6d3ffced1261d0e4f71fe /drivers/platform/x86/asus-laptop.c | |
parent | d31199a77ef606f1d06894385f1852181ba6136b (diff) |
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
Diffstat (limited to 'drivers/platform/x86/asus-laptop.c')
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index b756e07d41b4..e8acb1c7b194 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -1065,9 +1065,9 @@ static ssize_t store_gps(struct device *dev, struct device_attribute *attr, | |||
1065 | */ | 1065 | */ |
1066 | static int asus_gps_rfkill_set(void *data, bool blocked) | 1066 | static int asus_gps_rfkill_set(void *data, bool blocked) |
1067 | { | 1067 | { |
1068 | acpi_handle handle = data; | 1068 | struct asus_laptop *asus = data; |
1069 | 1069 | ||
1070 | return asus_gps_switch(handle, !blocked); | 1070 | return asus_gps_switch(asus, !blocked); |
1071 | } | 1071 | } |
1072 | 1072 | ||
1073 | static const struct rfkill_ops asus_gps_rfkill_ops = { | 1073 | static const struct rfkill_ops asus_gps_rfkill_ops = { |
@@ -1094,7 +1094,7 @@ static int asus_rfkill_init(struct asus_laptop *asus) | |||
1094 | 1094 | ||
1095 | asus->gps_rfkill = rfkill_alloc("asus-gps", &asus->platform_device->dev, | 1095 | asus->gps_rfkill = rfkill_alloc("asus-gps", &asus->platform_device->dev, |
1096 | RFKILL_TYPE_GPS, | 1096 | RFKILL_TYPE_GPS, |
1097 | &asus_gps_rfkill_ops, NULL); | 1097 | &asus_gps_rfkill_ops, asus); |
1098 | if (!asus->gps_rfkill) | 1098 | if (!asus->gps_rfkill) |
1099 | return -EINVAL; | 1099 | return -EINVAL; |
1100 | 1100 | ||