Skip to content
Commit cc461881 authored by Axel Lin's avatar Axel Lin Committed by Wolfram Sang
Browse files

i2c: versatile: Convert to use resource managed devm_* APIs



Use devm_* APIs to simplify the code a bit.
This patch also fixes the memory leak when unload the module.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Tested-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 9f6db9bf
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