aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00rfkill.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00rfkill.c b/drivers/net/wireless/rt2x00/rt2x00rfkill.c
index bbbf51d8a742..74396372e95c 100644
--- a/drivers/net/wireless/rt2x00/rt2x00rfkill.c
+++ b/drivers/net/wireless/rt2x00/rt2x00rfkill.c
@@ -136,12 +136,6 @@ int rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev)
136 rt2x00dev->poll_dev->poll = rt2x00rfkill_poll; 136 rt2x00dev->poll_dev->poll = rt2x00rfkill_poll;
137 rt2x00dev->poll_dev->poll_interval = RFKILL_POLL_INTERVAL; 137 rt2x00dev->poll_dev->poll_interval = RFKILL_POLL_INTERVAL;
138 138
139 rt2x00dev->poll_dev->input = input_allocate_device();
140 if (!rt2x00dev->poll_dev->input) {
141 ERROR(rt2x00dev, "Failed to allocate input device.\n");
142 goto exit_free_polldev;
143 }
144
145 rt2x00dev->poll_dev->input->name = rt2x00dev->ops->name; 139 rt2x00dev->poll_dev->input->name = rt2x00dev->ops->name;
146 rt2x00dev->poll_dev->input->phys = wiphy_name(rt2x00dev->hw->wiphy); 140 rt2x00dev->poll_dev->input->phys = wiphy_name(rt2x00dev->hw->wiphy);
147 rt2x00dev->poll_dev->input->id.bustype = BUS_HOST; 141 rt2x00dev->poll_dev->input->id.bustype = BUS_HOST;