Commit 2ee1d65e authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: Audit av7110_ir_init

From: Daniele <bellucda@tiscali.it>

- Audit av7110_ir_init
- On saa7146_register_extension failure report back its return code
parent 1d1d858e
......@@ -4745,12 +4745,19 @@ static struct saa7146_extension av7110_extension = {
static int __init av7110_init(void)
{
if (saa7146_register_extension(&av7110_extension))
return -ENODEV;
int retval;
retval = saa7146_register_extension(&av7110_extension);
if (retval)
goto failed_saa7146_register;
av7110_ir_init();
retval = av7110_ir_init();
if (retval)
goto failed_av7110_ir_init;
return 0;
failed_av7110_ir_init:
saa7146_unregister_extension(&av7110_extension);
failed_saa7146_register:
return retval;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment