Skip to content
Commit 9b61e302 authored by Suniel Mahesh's avatar Suniel Mahesh Committed by Mark Brown
Browse files

spi: Pick spi bus number from Linux idr or spi alias



Modify existing code, for automatically picking the spi bus number based
on Linux idr scheme as mentioned in FIXME.
This patch does the following:
(a) Remove the now unnecessary code which was allocating bus numbers using
    ATOMIC_INIT and atomic_dec_return macros.
(b) If we have an alias, pick the bus number from alias ID
(c) Convert to linux idr interface

Signed-off-by: default avatarSuniel Mahesh <sunil.m@techveda.org>
Signed-off-by: default avatarKarthik Tummala <karthik@techveda.org>
Tested-by: default avatarKarthik Tummala <karthik@techveda.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e0bcb680
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment