summaryrefslogtreecommitdiffstats
path: root/drivers/char/applicom.c
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez2013-03-08 09:21:47 +0100
committerGreg Kroah-Hartman2013-03-15 20:23:09 +0100
commite926301b39a07f587ff8c66354a2e2ee4c29162c (patch)
tree407121dd6ef41bfa48681e2ed4f7f48bf85b5f40 /drivers/char/applicom.c
parentipack: add ipack_get_device() ipack_put_device() (diff)
downloadkernel-qcow2-linux-e926301b39a07f587ff8c66354a2e2ee4c29162c.tar.gz
kernel-qcow2-linux-e926301b39a07f587ff8c66354a2e2ee4c29162c.tar.xz
kernel-qcow2-linux-e926301b39a07f587ff8c66354a2e2ee4c29162c.zip
ipack: split ipack_device_register() in several functions
One function is ipack_device_init(). If it fails, the caller should execute ipack_put_device(). The second function is ipack_device_add that only adds the device. If it fails, the caller should execute ipack_put_device(). Then the device is removed with refcount = 0, as device_register() kernel documentation says. ipack_device_del() is added to remove the device. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/applicom.c')
0 files changed, 0 insertions, 0 deletions