diff options
author | Arvind Yadav <[email protected]> | 2018-03-30 17:14:03 +0530 |
---|---|---|
committer | MyungJoo Ham <[email protected]> | 2018-07-18 13:56:49 +0900 |
commit | 2d803dc8f7a5f622ac47c3b650834ada3a2659b9 (patch) | |
tree | ac17f54196ca8b0838971930ea127b2fef78a1c2 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 12ba2c65f9d3d6996d1e909921151487b009dd30 (diff) |
PM / devfreq: use put_device() instead of kfree()
Never directly free @dev after calling device_register() or
device_unregister(), even if device_register() returned an error.
Always use put_device() to give up the reference initialized.
Signed-off-by: Arvind Yadav <[email protected]>
Reviewed-by: Chanwoo Choi <[email protected]>
Signed-off-by: MyungJoo Ham <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions