diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-07-09 13:32:23 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-14 21:21:56 +0900 |
commit | cc4618813e4bc409cd22641f6001118ef4479cfc (patch) | |
tree | 878b151e216af1b63434713090a4b38c94c58e41 /drivers/i2c/i2c-core.c | |
parent | 9f6db9bfb58e0008c0d041d69cef3bcb6247dc52 (diff) | |
download | lwn-cc4618813e4bc409cd22641f6001118ef4479cfc.tar.gz lwn-cc4618813e4bc409cd22641f6001118ef4479cfc.zip |
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: Axel Lin <axel.lin@ingics.com>
Tested-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
0 files changed, 0 insertions, 0 deletions