Make some funcs static
A 1 bit bitfield cannot be signed.
Use k*malloc instead of vmalloc

These are all small allocations so kmalloc is the way to go.
Clean up module init and exit

Do proper error checking in init
Free wq and iounmap in exit
Don't use relaxed io access

No need to use _relaxed versions of readl/writel. The read
func even got the barrier wrong.
Merge pull request #9 from pof2/master

Misc small fixes v2
Remove DEFINE_DYNAMIC_DEBUG_METADATA

DEFINE_DYNAMIC_DEBUG_METADATA is available in latest kernel

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>