Re: [PATCH] hid: add force feedback support for SmartJoy PLUS PS2/USB adapter
From: Oliver Neukum <oliver@neukum.org>
Date: 2009-05-08 08:02:48
From: Oliver Neukum <oliver@neukum.org>
Date: 2009-05-08 08:02:48
Am Freitag, 8. Mai 2009 09:46:36 schrieb Jussi Kivilinna:
+static int sj_probe(struct hid_device *hdev, const struct hid_device_id
*id) +{
+ int ret;
+
+ ret = hid_parse(hdev);
+ if (ret) {
+ dev_err(&hdev->dev, "parse failed\n");
+ goto err;
+ }
+
+ ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF);
+ if (ret) {
+ dev_err(&hdev->dev, "hw start failed\n");
+ goto err;
+ }
+
+ sjoyff_init(hdev);Do you really want to ignore errors this returns? Regards Oliver