rapidio: update for destination ID allocation
authorAlexandre Bounine <alexandre.bounine@idt.com>
Wed, 10 Oct 2012 22:54:01 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Oct 2012 23:50:15 +0000 (08:50 +0900)
commit4ed134beee42a5c9fc4b439f1e498363066e2516
treed2d2dc5515f15c19b0a51882e656176f9d72aef1
parent2574740d1fe946803caa6b0c06fbb4bf397af35d
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>
drivers/rapidio/rio-scan.c
include/linux/rio.h