diff options
author | Samuel Iglesias Gonsalvez <siglesias@igalia.com> | 2013-03-08 09:21:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 12:23:09 -0700 |
commit | e926301b39a07f587ff8c66354a2e2ee4c29162c (patch) | |
tree | 407121dd6ef41bfa48681e2ed4f7f48bf85b5f40 /mm | |
parent | fa882867ae5f8543eb304a1667563f1c99514475 (diff) | |
download | linux-stable-e926301b39a07f587ff8c66354a2e2ee4c29162c.tar.gz linux-stable-e926301b39a07f587ff8c66354a2e2ee4c29162c.tar.bz2 linux-stable-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 'mm')
0 files changed, 0 insertions, 0 deletions