diff options
| author | 2017-11-27 15:06:55 +0800 | |
|---|---|---|
| committer | 2018-01-17 15:23:31 +0100 | |
| commit | e0638fa400eaccf9fa8060f67140264c4e276552 (patch) | |
| tree | d0132eff16106aa5a9b961e85261b0e9e22329b8 /include | |
| parent | Linux 4.15-rc8 (diff) | |
i2c: core: decrease reference count of device node in i2c_unregister_device
Reference count of device node was increased in of_i2c_register_device,
but without decreasing it in i2c_unregister_device. Then the added
device node will never be released. Fix this by adding the of_node_put.
Signed-off-by: Lixin Wang <alan.1.wang@nokia-sbell.com>
Tested-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
