summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110_av.h
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-02-17 18:44:16 +0000
committerJohannes Stezenbach <devnull@localhost>2005-02-17 18:44:16 +0000
commita0ffcf1c9f8e8484b690b941fcdbb4e4be60eaeb (patch)
tree28391f0e70fadb11db22c7a8de84a69f01797024 /linux/drivers/media/dvb/ttpci/av7110_av.h
parentad57ce5aa84c8f7f614c5a1eb0cc0cdbf96998b8 (diff)
downloadmediapointer-dvb-s2-a0ffcf1c9f8e8484b690b941fcdbb4e4be60eaeb.tar.gz
mediapointer-dvb-s2-a0ffcf1c9f8e8484b690b941fcdbb4e4be60eaeb.tar.bz2
Janitoring - error handling during attach
- av7110_arm_sync(): small helper to factor out some code; - av7110_attach() does not check the status code returned by all the functions is uses; - balance the error path in av7110_attach and have it easy to check. Please check it; - if everything is correctly balanced, device_initialized is not needed anymore in struct av7110; - av7110_detach(): no need to cast a void * pointer; - av7110_detach(): die #ifdef, die ! - change the returned value of av7110_av_exit() as it can't fail; - change the returned value of av7110_ca_init() as it can fail. Removed extraneous casts while are it; - check for failure of vmalloc() in ci_ll_init(). Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_av.h')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_av.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_av.h b/linux/drivers/media/dvb/ttpci/av7110_av.h
index 9bfdf3745..cc5e7a7e8 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_av.h
+++ b/linux/drivers/media/dvb/ttpci/av7110_av.h
@@ -23,7 +23,7 @@ extern void av7110_p2t_write(u8 const *buf, long int length, u16 pid, struct av7
extern int av7110_av_register(struct av7110 *av7110);
extern void av7110_av_unregister(struct av7110 *av7110);
extern int av7110_av_init(struct av7110 *av7110);
-extern int av7110_av_exit(struct av7110 *av7110);
+extern void av7110_av_exit(struct av7110 *av7110);
#endif /* _AV7110_AV_H_ */