summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-core/dvbdev.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-29 09:20:13 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-06-17 12:04:47 -0300
commit4647f487083ded0d42a61bf2e066ce5328624ed3 (patch)
tree1ee5bb6b0cf671a96a12e48cf86d9be99102ca02 /drivers/media/dvb-core/dvbdev.h
parent3a370222b0c514360863ec79c1481dffbbf1ddab (diff)
downloadop-kernel-dev-4647f487083ded0d42a61bf2e066ce5328624ed3.zip
op-kernel-dev-4647f487083ded0d42a61bf2e066ce5328624ed3.tar.gz
[media] dvbdev: add a dvb_detach() macro
The dvb_attach() was unbalanced, as there was no dvb_dettach. Ok, on current cases, the dettach is done by dvbdev, but that are some future corner cases where we may need to do this before registering the frontend. So, add a dvb_detach() and use it at dvb_frontend.c. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-core/dvbdev.h')
-rw-r--r--drivers/media/dvb-core/dvbdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvbdev.h b/drivers/media/dvb-core/dvbdev.h
index 93a9470..f96b28e 100644
--- a/drivers/media/dvb-core/dvbdev.h
+++ b/drivers/media/dvb-core/dvbdev.h
@@ -136,11 +136,15 @@ extern int dvb_usercopy(struct file *file, unsigned int cmd, unsigned long arg,
__r; \
})
+#define dvb_detach(FUNC) symbol_put_addr(FUNC)
+
#else
#define dvb_attach(FUNCTION, ARGS...) ({ \
FUNCTION(ARGS); \
})
+#define dvb_detach(FUNC) {}
+
#endif
#endif /* #ifndef _DVBDEV_H_ */
OpenPOWER on IntegriCloud