diff options
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/Kconfig | 2 | ||||
-rw-r--r-- | net/bluetooth/hidp/core.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index 6929490d095a..7725da95a767 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig | |||
@@ -3,7 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | menuconfig BT | 5 | menuconfig BT |
6 | depends on NET | 6 | depends on NET && !S390 |
7 | tristate "Bluetooth subsystem support" | 7 | tristate "Bluetooth subsystem support" |
8 | help | 8 | help |
9 | Bluetooth is low-cost, low-power, short-range wireless technology. | 9 | Bluetooth is low-cost, low-power, short-range wireless technology. |
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 3e77e8102e08..ceadfcf457c1 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c | |||
@@ -174,7 +174,7 @@ static inline int hidp_queue_event(struct hidp_session *session, struct input_de | |||
174 | 174 | ||
175 | static int hidp_hidinput_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) | 175 | static int hidp_hidinput_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) |
176 | { | 176 | { |
177 | struct hid_device *hid = dev->private; | 177 | struct hid_device *hid = input_get_drvdata(dev); |
178 | struct hidp_session *session = hid->driver_data; | 178 | struct hidp_session *session = hid->driver_data; |
179 | 179 | ||
180 | return hidp_queue_event(session, dev, type, code, value); | 180 | return hidp_queue_event(session, dev, type, code, value); |
@@ -182,7 +182,7 @@ static int hidp_hidinput_event(struct input_dev *dev, unsigned int type, unsigne | |||
182 | 182 | ||
183 | static int hidp_input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) | 183 | static int hidp_input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) |
184 | { | 184 | { |
185 | struct hidp_session *session = dev->private; | 185 | struct hidp_session *session = input_get_drvdata(dev); |
186 | 186 | ||
187 | return hidp_queue_event(session, dev, type, code, value); | 187 | return hidp_queue_event(session, dev, type, code, value); |
188 | } | 188 | } |
@@ -630,7 +630,7 @@ static inline void hidp_setup_input(struct hidp_session *session, struct hidp_co | |||
630 | struct input_dev *input = session->input; | 630 | struct input_dev *input = session->input; |
631 | int i; | 631 | int i; |
632 | 632 | ||
633 | input->private = session; | 633 | input_set_drvdata(input, session); |
634 | 634 | ||
635 | input->name = "Bluetooth HID Boot Protocol Device"; | 635 | input->name = "Bluetooth HID Boot Protocol Device"; |
636 | 636 | ||
@@ -663,7 +663,7 @@ static inline void hidp_setup_input(struct hidp_session *session, struct hidp_co | |||
663 | input->relbit[0] |= BIT(REL_WHEEL); | 663 | input->relbit[0] |= BIT(REL_WHEEL); |
664 | } | 664 | } |
665 | 665 | ||
666 | input->cdev.dev = hidp_get_device(session); | 666 | input->dev.parent = hidp_get_device(session); |
667 | 667 | ||
668 | input->event = hidp_input_event; | 668 | input->event = hidp_input_event; |
669 | 669 | ||
@@ -862,7 +862,7 @@ failed: | |||
862 | if (session->hid) | 862 | if (session->hid) |
863 | hid_free_device(session->hid); | 863 | hid_free_device(session->hid); |
864 | 864 | ||
865 | kfree(session->input); | 865 | input_free_device(session->input); |
866 | kfree(session); | 866 | kfree(session); |
867 | return err; | 867 | return err; |
868 | } | 868 | } |