dmaengine: rcar-dmac: Use DECLARE_BITMAP
authorJoe Perches <joe@perches.com>
Wed, 20 May 2015 01:37:50 +0000 (18:37 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 25 May 2015 17:12:10 +0000 (22:42 +0530)
Use the generic mechanism to declare a bitmap instead of unsigned long.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/rcar-dmac.c

index a18d16c..d5423a6 100644 (file)
@@ -183,7 +183,7 @@ struct rcar_dmac {
        unsigned int n_channels;
        struct rcar_dmac_chan *channels;
 
-       unsigned long modules[256 / BITS_PER_LONG];
+       DECLARE_BITMAP(modules, 256);
 };
 
 #define to_rcar_dmac(d)                container_of(d, struct rcar_dmac, engine)