HID: wiimote: Add debugfs support stubs
[linux-2.6.git] / drivers / hid / hid-wiimote-core.c
index d8ed1ec..919abba 100644 (file)
@@ -1161,6 +1161,7 @@ err:
 
 static void wiimote_destroy(struct wiimote_data *wdata)
 {
+       wiidebug_deinit(wdata);
        wiiext_deinit(wdata);
        wiimote_leds_destroy(wdata);
 
@@ -1237,6 +1238,10 @@ static int wiimote_hid_probe(struct hid_device *hdev,
        if (ret)
                goto err_free;
 
+       ret = wiidebug_init(wdata);
+       if (ret)
+               goto err_free;
+
        hid_info(hdev, "New device registered\n");
 
        /* by default set led1 after device initialization */