aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/wacom_sys.c')
-rw-r--r--drivers/hid/wacom_sys.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 8593047bb726..b6bcd251c4a8 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -70,22 +70,15 @@ static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report,
70static int wacom_open(struct input_dev *dev) 70static int wacom_open(struct input_dev *dev)
71{ 71{
72 struct wacom *wacom = input_get_drvdata(dev); 72 struct wacom *wacom = input_get_drvdata(dev);
73 int retval;
74
75 mutex_lock(&wacom->lock);
76 retval = hid_hw_open(wacom->hdev);
77 mutex_unlock(&wacom->lock);
78 73
79 return retval; 74 return hid_hw_open(wacom->hdev);
80} 75}
81 76
82static void wacom_close(struct input_dev *dev) 77static void wacom_close(struct input_dev *dev)
83{ 78{
84 struct wacom *wacom = input_get_drvdata(dev); 79 struct wacom *wacom = input_get_drvdata(dev);
85 80
86 mutex_lock(&wacom->lock);
87 hid_hw_close(wacom->hdev); 81 hid_hw_close(wacom->hdev);
88 mutex_unlock(&wacom->lock);
89} 82}
90 83
91/* 84/*