powerpc/iommu: Use bitmap library
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 4 Nov 2012 02:03:43 +0000 (02:03 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 15 Nov 2012 02:01:04 +0000 (13:01 +1100)
commitc5a0809a24c19fcefea5f3aeb07bde9a2dee5d80
tree7d3977b064fa374f66e1392e7756bc5851225b70
parentd7a1ed163a3bb7aa727d3f9335349055aeea110c
powerpc/iommu: Use bitmap library

- Caluculate the bitmap size with BITS_TO_LONGS()
 - Use bitmap_empty() to verify that all bits are cleared

This also includes a printk to pr_warn() conversion.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/iommu.c