Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174111
b: refs/heads/master
c: 56411f4
h: refs/heads/master
i:
  174109: 717ed3b
  174107: 4474aa2
  174103: b2d8142
  174095: a1d37fc
  174079: 4b22c8e
v: v3
  • Loading branch information
Stefan Richter authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 34901d5 commit 49e8390
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: b921d929f4a012be3e809fbb1ff1e8e6c0751c06
refs/heads/master: 56411f49f69140b97e259256b99dc276f2b2b427
5 changes: 3 additions & 2 deletions trunk/drivers/media/dvb/firewire/firedtv-1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ static int node_probe(struct device *dev)
goto fail;

avc_register_remote_control(fdtv);

return 0;
fail:
spin_lock_irq(&node_list_lock);
Expand All @@ -220,6 +221,7 @@ static int node_probe(struct device *dev)
fdtv_unregister_rc(fdtv);
fail_free:
kfree(fdtv);

return err;
}

Expand All @@ -233,10 +235,9 @@ static int node_remove(struct device *dev)
list_del(&fdtv->list);
spin_unlock_irq(&node_list_lock);

cancel_work_sync(&fdtv->remote_ctrl_work);
fdtv_unregister_rc(fdtv);

kfree(fdtv);

return 0;
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/dvb/firewire/firedtv-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/workqueue.h>

#include "firedtv.h"

Expand Down Expand Up @@ -163,6 +164,7 @@ int fdtv_register_rc(struct firedtv *fdtv, struct device *dev)

void fdtv_unregister_rc(struct firedtv *fdtv)
{
cancel_work_sync(&fdtv->remote_ctrl_work);
kfree(fdtv->remote_ctrl_dev->keycode);
input_unregister_device(fdtv->remote_ctrl_dev);
}
Expand Down

0 comments on commit 49e8390

Please sign in to comment.