diff options
-rw-r--r-- | drivers/macintosh/mac_hid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c index 89302309da92..f972ff377b63 100644 --- a/drivers/macintosh/mac_hid.c +++ b/drivers/macintosh/mac_hid.c | |||
@@ -103,6 +103,9 @@ int mac_hid_mouse_emulate_buttons(int caller, unsigned int keycode, int down) | |||
103 | return 0; | 103 | return 0; |
104 | } | 104 | } |
105 | 105 | ||
106 | static struct lock_class_key emumousebtn_event_class; | ||
107 | static struct lock_class_key emumousebtn_mutex_class; | ||
108 | |||
106 | static int emumousebtn_input_register(void) | 109 | static int emumousebtn_input_register(void) |
107 | { | 110 | { |
108 | int ret; | 111 | int ret; |
@@ -111,6 +114,9 @@ static int emumousebtn_input_register(void) | |||
111 | if (!emumousebtn) | 114 | if (!emumousebtn) |
112 | return -ENOMEM; | 115 | return -ENOMEM; |
113 | 116 | ||
117 | lockdep_set_class(emumousebtn->event_lock, &emumousebtn_event_class); | ||
118 | lockdep_set_class(emumousebtn->mutex, &emumousebtn_mutex_class); | ||
119 | |||
114 | emumousebtn->name = "Macintosh mouse button emulation"; | 120 | emumousebtn->name = "Macintosh mouse button emulation"; |
115 | emumousebtn->id.bustype = BUS_ADB; | 121 | emumousebtn->id.bustype = BUS_ADB; |
116 | emumousebtn->id.vendor = 0x0001; | 122 | emumousebtn->id.vendor = 0x0001; |