From: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>Yes, you are correct there is nothing to release (hnae_release).
Date: Fri, 9 Mar 2018 16:11:17 +0530
if device_register() returned an error! Always use put_device()I do not see anything giving cls_dev an initial non-zero reference
to give up the reference initialized.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
count before this device_register() call.
Sorry for that. next time I will take care.
And I have no idea why you use a "!" when saying 'error' you this
commit log message.