hwspinlock/omap: simplify allocation scheme
authorOhad Ben-Cohen <ohad@wizery.com>
Mon, 5 Sep 2011 14:30:34 +0000 (17:30 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Wed, 21 Sep 2011 16:45:32 +0000 (19:45 +0300)
commitc97f6dd0fe21dfd658c59c144a1b7fd5d8db04ac
tree6cc0cb7fa7072aa62375a558a732b837703829a6
parente467b6421435f467e274d4f25d62900e1e0e4286
hwspinlock/omap: simplify allocation scheme

Instead of allocating every hwspinlock separately, allocate
them all in one shot.

This both simplifies the driver and helps achieving better
slab utilization.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/hwspinlock/omap_hwspinlock.c