diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-03-27 09:14:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:27 -0400 |
commit | 621cac85297de5ba655e3430b007dd2e0da91da6 (patch) | |
tree | 6193ecf0966094bb744fb4238191bcab03a3cdef /drivers/platform/x86/hp-wmi.c | |
parent | c1c6b14b22af0f85d05a70405dc3fba5de840c7b (diff) |
rfkill: remove user_claim stuff
Almost all drivers do not support user_claim, so remove it
completely and always report -EOPNOTSUPP to userspace. Since
userspace cannot really drive rfkill _anyway_ (due to the
odd restrictions imposed by the documentation) having this
code is just pointless.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/platform/x86/hp-wmi.c')
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 50d9019de2be..fe171fad12cf 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c | |||
@@ -434,7 +434,6 @@ static int __init hp_wmi_bios_setup(struct platform_device *device) | |||
434 | wifi_rfkill->name = "hp-wifi"; | 434 | wifi_rfkill->name = "hp-wifi"; |
435 | wifi_rfkill->state = hp_wmi_wifi_state(); | 435 | wifi_rfkill->state = hp_wmi_wifi_state(); |
436 | wifi_rfkill->toggle_radio = hp_wmi_wifi_set; | 436 | wifi_rfkill->toggle_radio = hp_wmi_wifi_set; |
437 | wifi_rfkill->user_claim_unsupported = 1; | ||
438 | err = rfkill_register(wifi_rfkill); | 437 | err = rfkill_register(wifi_rfkill); |
439 | if (err) | 438 | if (err) |
440 | goto add_sysfs_error; | 439 | goto add_sysfs_error; |
@@ -446,7 +445,6 @@ static int __init hp_wmi_bios_setup(struct platform_device *device) | |||
446 | bluetooth_rfkill->name = "hp-bluetooth"; | 445 | bluetooth_rfkill->name = "hp-bluetooth"; |
447 | bluetooth_rfkill->state = hp_wmi_bluetooth_state(); | 446 | bluetooth_rfkill->state = hp_wmi_bluetooth_state(); |
448 | bluetooth_rfkill->toggle_radio = hp_wmi_bluetooth_set; | 447 | bluetooth_rfkill->toggle_radio = hp_wmi_bluetooth_set; |
449 | bluetooth_rfkill->user_claim_unsupported = 1; | ||
450 | err = rfkill_register(bluetooth_rfkill); | 448 | err = rfkill_register(bluetooth_rfkill); |
451 | if (err) | 449 | if (err) |
452 | goto register_bluetooth_error; | 450 | goto register_bluetooth_error; |
@@ -457,7 +455,6 @@ static int __init hp_wmi_bios_setup(struct platform_device *device) | |||
457 | wwan_rfkill->name = "hp-wwan"; | 455 | wwan_rfkill->name = "hp-wwan"; |
458 | wwan_rfkill->state = hp_wmi_wwan_state(); | 456 | wwan_rfkill->state = hp_wmi_wwan_state(); |
459 | wwan_rfkill->toggle_radio = hp_wmi_wwan_set; | 457 | wwan_rfkill->toggle_radio = hp_wmi_wwan_set; |
460 | wwan_rfkill->user_claim_unsupported = 1; | ||
461 | err = rfkill_register(wwan_rfkill); | 458 | err = rfkill_register(wwan_rfkill); |
462 | if (err) | 459 | if (err) |
463 | goto register_wwan_err; | 460 | goto register_wwan_err; |