Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175262
b: refs/heads/master
c: 5b4c4dc
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Dec 11, 2009
1 parent 42762bf commit 061d3ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d189164a2426a5169117cfe154186c2f999ada87
refs/heads/master: 5b4c4dc61d5445346b1d5465c4b4934ea933165b
40 changes: 0 additions & 40 deletions trunk/drivers/staging/samsung-laptop/samsung-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* the Free Software Foundation.
*
*/
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
Expand Down Expand Up @@ -274,7 +273,6 @@ static struct backlight_ops backlight_ops = {
.update_status = update_status,
};

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
static int rfkill_set(void *data, bool blocked)
{
/* Do something with blocked...*/
Expand Down Expand Up @@ -318,44 +316,6 @@ static void destroy_wireless(void)
rfkill_destroy(rfk);
}

#else

static int rfkill_set(void *data, enum rfkill_state state)
{
if (state == RFKILL_STATE_UNBLOCKED)
sabi_set_command(SET_WIRELESS_BUTTON, 1);
else
sabi_set_command(SET_WIRELESS_BUTTON, 0);

return 0;
}

static int init_wireless(struct platform_device *sdev)
{
int retval;

rfk = rfkill_allocate(&sdev->dev, RFKILL_TYPE_WLAN);
if (!rfk)
return -ENOMEM;
rfk->toggle_radio = rfkill_set;
rfk->name = "samsung-wifi";

retval = rfkill_register(rfk);
if (retval) {
rfkill_free(rfk);
return -ENODEV;
}

return 0;
}

static void destroy_wireless(void)
{
rfkill_unregister(rfk);
}

#endif

static ssize_t get_silent_state(struct device *dev,
struct device_attribute *attr, char *buf)
{
Expand Down

0 comments on commit 061d3ed

Please sign in to comment.