aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/asus-laptop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index 27298a49c6d..67d92288761 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -1066,9 +1066,9 @@ static ssize_t store_gps(struct device *dev, struct device_attribute *attr,
1066 */ 1066 */
1067static int asus_gps_rfkill_set(void *data, bool blocked) 1067static int asus_gps_rfkill_set(void *data, bool blocked)
1068{ 1068{
1069 acpi_handle handle = data; 1069 struct asus_laptop *asus = data;
1070 1070
1071 return asus_gps_switch(handle, !blocked); 1071 return asus_gps_switch(asus, !blocked);
1072} 1072}
1073 1073
1074static const struct rfkill_ops asus_gps_rfkill_ops = { 1074static const struct rfkill_ops asus_gps_rfkill_ops = {
@@ -1095,7 +1095,7 @@ static int asus_rfkill_init(struct asus_laptop *asus)
1095 1095
1096 asus->gps_rfkill = rfkill_alloc("asus-gps", &asus->platform_device->dev, 1096 asus->gps_rfkill = rfkill_alloc("asus-gps", &asus->platform_device->dev,
1097 RFKILL_TYPE_GPS, 1097 RFKILL_TYPE_GPS,
1098 &asus_gps_rfkill_ops, NULL); 1098 &asus_gps_rfkill_ops, asus);
1099 if (!asus->gps_rfkill) 1099 if (!asus->gps_rfkill)
1100 return -EINVAL; 1100 return -EINVAL;
1101 1101