diff options
Diffstat (limited to 'drivers/hid/hid-gaff.c')
-rw-r--r-- | drivers/hid/hid-gaff.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hid/hid-gaff.c b/drivers/hid/hid-gaff.c index 510ad3ab8d33..8a11ccddaf2e 100644 --- a/drivers/hid/hid-gaff.c +++ b/drivers/hid/hid-gaff.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/usb.h> | 31 | #include <linux/usb.h> |
32 | #include <linux/hid.h> | 32 | #include <linux/hid.h> |
33 | #include "hid-ids.h" | 33 | #include "hid-ids.h" |
34 | |||
35 | #ifdef CONFIG_GREENASIA_FF | ||
34 | #include "usbhid/usbhid.h" | 36 | #include "usbhid/usbhid.h" |
35 | 37 | ||
36 | struct gaff_device { | 38 | struct gaff_device { |
@@ -130,6 +132,12 @@ static int gaff_init(struct hid_device *hid) | |||
130 | 132 | ||
131 | return 0; | 133 | return 0; |
132 | } | 134 | } |
135 | #else | ||
136 | static inline int gaff_init(struct hid_device *hdev) | ||
137 | { | ||
138 | return 0; | ||
139 | } | ||
140 | #endif | ||
133 | 141 | ||
134 | static int ga_probe(struct hid_device *hdev, const struct hid_device_id *id) | 142 | static int ga_probe(struct hid_device *hdev, const struct hid_device_id *id) |
135 | { | 143 | { |