Skip to content
Commit 82ff3ac7 authored by Geliang Tang's avatar Geliang Tang Committed by Greg Kroah-Hartman
Browse files

misc: mic: replace kfree with put_device



Handle a failed device_register(), replace kfree() with put_device(),
which will call cosm/mbus/scif_release_dev().

Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f8bf0dec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment