On Wed, Oct 22, 2025 at 04:34:52PM +0800, Ma Ke wrote:
As comment of device_add() says, 'if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has not succeeded, use only put_device() to drop the reference count'.
Found by code review.
Your subject line looks a bit messed up :(