diff options
Diffstat (limited to 'drivers/hid/hid-zpff.c')
-rw-r--r-- | drivers/hid/hid-zpff.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-zpff.c b/drivers/hid/hid-zpff.c index 85a198a18537..57f710757bf4 100644 --- a/drivers/hid/hid-zpff.c +++ b/drivers/hid/hid-zpff.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "hid-ids.h" | 28 | #include "hid-ids.h" |
29 | 29 | ||
30 | #ifdef CONFIG_ZEROPLUS_FF | ||
30 | #include "usbhid/usbhid.h" | 31 | #include "usbhid/usbhid.h" |
31 | 32 | ||
32 | struct zpff_device { | 33 | struct zpff_device { |
@@ -108,6 +109,12 @@ static int zpff_init(struct hid_device *hid) | |||
108 | 109 | ||
109 | return 0; | 110 | return 0; |
110 | } | 111 | } |
112 | #else | ||
113 | static inline int zpff_init(struct hid_device *hid) | ||
114 | { | ||
115 | return 0; | ||
116 | } | ||
117 | #endif | ||
111 | 118 | ||
112 | static int zp_probe(struct hid_device *hdev, const struct hid_device_id *id) | 119 | static int zp_probe(struct hid_device *hdev, const struct hid_device_id *id) |
113 | { | 120 | { |