summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ipack/ipack.c
Commit message (Collapse)AuthorAgeFilesLines
* Staging: ipack: remove pr_fmt definition.Samuel Iglesias Gonsalvez2012-06-121-2/+0Star
| | | | | | | | As there is no pr_* function used here, pr_fmt is not needed. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: ipack: delete the call to remove() in ipack_driver_registerSamuel Iglesias Gonsalvez2012-06-071-2/+0Star
| | | | | | | | | | | When a bus driver calls ipack_driver_register(), it should manages the returning NULL value to undo all the operations it did before this call, and print the corresponding trace. It is not a task for the ipack driver to call the remove() function here. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: ipack: use idr interface for numbering busesSamuel Iglesias Gonsalvez2012-06-071-34/+6Star
| | | | | | | | | | | Use idr interface to give the bus number. That way, we remove the limitation of 64 buses. The mutex is removed because the ida interface uses spinlocks inside, so it is not needed an extra lock. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: ipack: return proper value in match() functionSamuel Iglesias Gonsalvez2012-06-071-1/+1
| | | | | | | | | | It should return the same value given by the match function of the ipack_driver that has been called. Returning 0 here, means that the match has failed and it could be succeed. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: ipack: improve the register of a bus and a device in the bus.Samuel Iglesias Gonsalvez2012-05-191-13/+44
| | | | | | | | | | | It adds and removes some fields in the struct ipack_device and ipack_bus_device to make it cleaner. The API has change to group all the operations on these structures inside of the ipack driver. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: ipack: change the licence to explicitly GPLv2Samuel Iglesias Gonsalvez2012-05-141-2/+1Star
| | | | | | | | Change the licence to explicitly GPLv2 to avoid possible conflicts in the future. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: IndustryPack bus for the Linux KernelSamuel Iglesias Gonsalvez2012-05-091-0/+175
Add IndustryPack bus support for the Linux Kernel. This is a virtual bus that allows to perform all the operations between carrier and mezzanine boards. Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>