commit | 8661fca6f679996133765fa905e9a480b8c96a74 | [log] [tgz] |
---|---|---|
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | Thu Feb 18 20:11:36 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Feb 20 15:02:06 2016 -0800 |
tree | d25c90d3caca08a637537f119be500756ceaaeb7 | |
parent | 11b49d9bb63fab2f92223419a2492661e317e2ef [diff] |
staging: most: hdm-dim2: Replace kzalloc with devm_kzalloc Devm_ functions allocate memory that is released when a driver detaches. Replace kzalloc with devm_kzalloc and remove corresponding kfrees from probe and remove functions of a platform device. Also, an unnecessary label has been removed. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>