]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: ipack: use idr interface for numbering buses
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 May 2012 08:03:01 +0000 (10:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jun 2012 05:20:29 +0000 (14:20 +0900)
commitd260adf7283c60bf10066d515eeb15b878371023
tree645af677cbfb9fe4247a90b445712b8942f6c39e
parente72f59ff7535740e7690edb7fbebd775fe07f93f
Staging: ipack: use idr interface for numbering buses

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>
drivers/staging/ipack/ipack.c