commit | 0c566659237c910696c5187fd3edb3e5ef085af7 | [log] [tgz] |
---|---|---|
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | Tue Feb 23 01:52:33 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 11 22:09:09 2016 -0800 |
tree | a4bb9fa3906da21737888663f1de3025d35cb81d | |
parent | 5084d7c66248394d3887805c7f13c5d274573bfd [diff] |
staging: vme: devices: 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, unnecessary labels have been removed. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>