diff options
Diffstat (limited to 'drivers/hid/hid-drff.c')
-rw-r--r-- | drivers/hid/hid-drff.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hid/hid-drff.c b/drivers/hid/hid-drff.c index 34f3eb65100b..a239d20ad7a5 100644 --- a/drivers/hid/hid-drff.c +++ b/drivers/hid/hid-drff.c | |||
@@ -32,6 +32,8 @@ | |||
32 | #include <linux/hid.h> | 32 | #include <linux/hid.h> |
33 | 33 | ||
34 | #include "hid-ids.h" | 34 | #include "hid-ids.h" |
35 | |||
36 | #ifdef CONFIG_DRAGONRISE_FF | ||
35 | #include "usbhid/usbhid.h" | 37 | #include "usbhid/usbhid.h" |
36 | 38 | ||
37 | struct drff_device { | 39 | struct drff_device { |
@@ -135,6 +137,12 @@ static int drff_init(struct hid_device *hid) | |||
135 | 137 | ||
136 | return 0; | 138 | return 0; |
137 | } | 139 | } |
140 | #else | ||
141 | static inline int drff_init(struct hid_device *hid) | ||
142 | { | ||
143 | return 0; | ||
144 | } | ||
145 | #endif | ||
138 | 146 | ||
139 | static int dr_probe(struct hid_device *hdev, const struct hid_device_id *id) | 147 | static int dr_probe(struct hid_device *hdev, const struct hid_device_id *id) |
140 | { | 148 | { |