[PATCH 2/6] drivers/base: add bus for System-on-Chip devices

Arnd Bergmann arnd at arndb.de
Wed Feb 1 11:55:54 EST 2012

On Wednesday 01 February 2012, Jamie Iles wrote:
> > +static struct ida soc_ida;
> > +static spinlock_t soc_lock;
> Use DEFINE_IDR() and DEFINE_SPINLOCK() rather than initialising them at runtime?

Good point! "static DEFINE_{IDR,SPINLOCK}()" even, in case that wasn't clear.


More information about the linux-arm-kernel mailing list