mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
staging: msm: tvenc: fix error handling
Driver init() function should return error code. Also fix tvenc_clk leak. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
8956110dbb
commit
280740a901
@ -279,12 +279,13 @@ static int __init tvenc_driver_init(void)
|
||||
|
||||
if (IS_ERR(tvenc_clk)) {
|
||||
printk(KERN_ERR "error: can't get tvenc_clk!\n");
|
||||
return IS_ERR(tvenc_clk);
|
||||
return PTR_ERR(tvenc_clk);
|
||||
}
|
||||
|
||||
if (IS_ERR(tvdac_clk)) {
|
||||
printk(KERN_ERR "error: can't get tvdac_clk!\n");
|
||||
return IS_ERR(tvdac_clk);
|
||||
clk_put(tvenc_clk);
|
||||
return PTR_ERR(tvdac_clk);
|
||||
}
|
||||
|
||||
// pm_qos_add_requirement(PM_QOS_SYSTEM_BUS_FREQ , "tvenc",
|
||||
|
Loading…
x
Reference in New Issue
Block a user