]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/hid/hid-zpff.c
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec...
[mv-sheeva.git] / drivers / hid / hid-zpff.c
index 85a198a185372967fa487a744d1d5517216a9136..57f710757bf425ac6b32fb49314121357e327b41 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "hid-ids.h"
 
+#ifdef CONFIG_ZEROPLUS_FF
 #include "usbhid/usbhid.h"
 
 struct zpff_device {
@@ -108,6 +109,12 @@ static int zpff_init(struct hid_device *hid)
 
        return 0;
 }
+#else
+static inline int zpff_init(struct hid_device *hid)
+{
+       return 0;
+}
+#endif
 
 static int zp_probe(struct hid_device *hdev, const struct hid_device_id *id)
 {