On 7/6/25 14:23, Danilo Krummrich wrote:
If you overwrite this callback (as you do below) you're leaking the memory
allocated by pwmchip_alloc().
The simple way to solve this would be to call pwmchip_release() from here.
Thanks, a pwmchip_release() is static though, so it's either expose the
pwmchip_release in the header, or call kfree() here directly on pwmchip.