Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305039
b: refs/heads/master
c: 6a2e176
h: refs/heads/master
i:
  305037: f012cf2
  305035: 327661e
  305031: a8460d8
  305023: d1be63d
v: v3
  • Loading branch information
Michal Malý authored and Jiri Kosina committed Apr 3, 2012
1 parent de45a6b commit 5780860
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 8577dbf9d6eb07213caefb49e2017c177c5f023d
refs/heads/master: 6a2e176b2d6ae6bb528c0c1a50a6332e176cda12
2 changes: 0 additions & 2 deletions trunk/drivers/hid/hid-lg.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef __HID_LG_H
#define __HID_LG_H

#include <linux/spinlock.h>

struct lg_drv_data {
unsigned long quirks;
void *device_props; /* Device specific properties */
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/hid/hid-lg4ff.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ int lg4ff_deinit(struct hid_device *hid)
bool found = 0;
struct lg4ff_device_entry *entry;
struct list_head *h, *g;

device_remove_file(&hid->dev, &dev_attr_range);

list_for_each_safe(h, g, &device_list.list) {
entry = list_entry(h, struct lg4ff_device_entry, list);
if (strcmp(entry->device_id, (&hid->dev)->kobj.name) == 0) {
Expand All @@ -478,11 +481,10 @@ int lg4ff_deinit(struct hid_device *hid)
}

if (!found) {
dbg_hid("Device entry not found!\n");
hid_err(hid, "Device entry not found!\n");
return -1;
}

device_remove_file(&hid->dev, &dev_attr_range);
dbg_hid("Device successfully unregistered\n");
return 0;
}

0 comments on commit 5780860

Please sign in to comment.