Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323478
b: refs/heads/master
c: 8b61513
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Jiri Kosina committed Sep 7, 2012
1 parent 10827c2 commit f00f5bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 751e5ed350ac3f8dff9fd63ce01405da9472a034
refs/heads/master: 8b61513b86a221760389237c039105b5a5a332b3
25 changes: 0 additions & 25 deletions trunk/drivers/hid/hid-primax.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,6 @@ static int px_raw_event(struct hid_device *hid, struct hid_report *report,
return 0;
}

static int px_probe(struct hid_device *hid, const struct hid_device_id *id)
{
int ret;

ret = hid_parse(hid);
if (ret) {
hid_err(hid, "parse failed\n");
goto fail;
}

ret = hid_hw_start(hid, HID_CONNECT_DEFAULT);
if (ret)
hid_err(hid, "hw start failed\n");

fail:
return ret;
}

static void px_remove(struct hid_device *hid)
{
hid_hw_stop(hid);
}

static const struct hid_device_id px_devices[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_PRIMAX, USB_DEVICE_ID_PRIMAX_KEYBOARD) },
{ }
Expand All @@ -97,8 +74,6 @@ static struct hid_driver px_driver = {
.name = "primax",
.id_table = px_devices,
.raw_event = px_raw_event,
.probe = px_probe,
.remove = px_remove,
};

static int __init px_init(void)
Expand Down

0 comments on commit f00f5bc

Please sign in to comment.