From: Samuel Iglesias Gonsalvez Date: Fri, 8 Mar 2013 08:21:47 +0000 (+0100) Subject: ipack: split ipack_device_register() in several functions X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~139^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e926301b39a07f587ff8c66354a2e2ee4c29162c;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed