misc: mic: replace kfree with put_device
authorGeliang Tang <geliangtang@163.com>
Mon, 12 Oct 2015 04:05:13 +0000 (21:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:42:29 +0000 (21:42 -0700)
commit82ff3ac7641a645b55f3bee4acceabf6f17e62f4
tree4c132acad29c0ceb736b20051ec170097e7c984e
parentf8bf0dece0fcc9b5271b67cae1123ebfcaf8d8bc
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: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/bus/cosm_bus.c
drivers/misc/mic/bus/mic_bus.c
drivers/misc/mic/bus/scif_bus.c