summaryrefslogtreecommitdiffstats
path: root/include/linux/ipack.h
Commit message (Collapse)AuthorAgeFilesLines
* ipack: save carrier owner to allow device to get itFederico Vaga2014-09-231-1/+23
| | | | | | | | | | There was not any kind of protection against carrier driver removal. In this way, device driver can 'get' the carrier driver when it is using it. Signed-off-by: Federico Vaga <federico.vaga@cern.ch> Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ipack: split ipack_device_register() in several functionsSamuel Iglesias Gonsalvez2013-03-151-10/+29
| | | | | | | | | | | | | | | | 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>
* ipack: add ipack_get_device() ipack_put_device()Samuel Iglesias Gonsalvez2013-03-151-0/+3
| | | | | | | Prepare everything for later use. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ipack: remove use of __devinitconstBill Pemberton2012-11-211-2/+1
| | | | | | | | CONFIG_HOTPLUG is going away as an option so __devinitconst is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ipack: remove ipack_ids.h fileSamuel Iglesias Gonsalvez2012-11-161-0/+33
| | | | | | | | | Its contents are merged into ipack.h. So this file is not needed. Doing that, it simplifies the ipack-related driver development. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ipack: move header files to include/linuxSamuel Iglesias Gonsalvez2012-11-161-0/+213
Move ipack header files to include/linux/ directory where they belong. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
OpenPOWER on IntegriCloud