Tag: d1bb4b29a74ea81b8282011479bc36417620b5fa

[media] drivers/media/platform/mx2_emmaprp.c: use devm_kzalloc and devm_clk_get

Author: Julia Lawall <Julia.Lawall@lip6.fr> Using devm_kzalloc simplifies the code and ensures that the use of devm_request_irq is safe. When kzalloc and kfree were used, the interrupt could be triggered after the handler’s data argument had been freed. This also introduces some missing initializations of the return variable ret, and uses devm_request_and_ioremap instead of the combination …

Continue reading