[PATCH] drivers: spi: Pick spi bus number from Linux idr or spi alias

2017-08-02 Thread sunil . m
From: Suniel Mahesh 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

[PATCH] drivers: spi: Pick spi bus number from Linux idr or spi alias

2017-08-02 Thread sunil . m
From: Suniel Mahesh 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 macro's. (b) If we