aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rio.h
diff options
context:
space:
mode:
authorAlexandre Bounine <alexandre.bounine@idt.com>2012-10-10 18:54:01 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-10 19:50:15 -0400
commit4ed134beee42a5c9fc4b439f1e498363066e2516 (patch)
treed2d2dc5515f15c19b0a51882e656176f9d72aef1 /include/linux/rio.h
parent2574740d1fe946803caa6b0c06fbb4bf397af35d (diff)
rapidio: update for destination ID allocation
Address comments provided by Andrew Morton: https://lkml.org/lkml/2012/10/3/550 - Keeps consistent kerneldoc compatible comments style for new static functions. - Removes unnecessary complexity from destination ID allocation routine. - Uses kcalloc() for code clarity. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rio.h')
-rw-r--r--include/linux/rio.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h
index d2dff22cf681..ac21ac675265 100644
--- a/include/linux/rio.h
+++ b/include/linux/rio.h
@@ -266,7 +266,6 @@ struct rio_mport {
266 266
267struct rio_id_table { 267struct rio_id_table {
268 u16 start; /* logical minimal id */ 268 u16 start; /* logical minimal id */
269 u16 next; /* hint for find */
270 u32 max; /* max number of IDs in table */ 269 u32 max; /* max number of IDs in table */
271 spinlock_t lock; 270 spinlock_t lock;
272 unsigned long *table; 271 unsigned long *table;