summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2018-03-08 12:57:37 +0300
committerThierry Reding <thierry.reding@gmail.com>2018-03-28 02:18:53 +0300
commit8bbf5b426160343b554117eb9abdf4dad9a50e65 (patch)
tree5c83efe0fb5d3bc294fa8ac2fc0ec16aa02815df /Kbuild
parent8422c7439ea9c4e08198cec7edd5faf3890c4dd7 (diff)
downloadlinux-8bbf5b426160343b554117eb9abdf4dad9a50e65.tar.xz
pwm: sysfs: Use put_device() instead of kfree()
Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions