]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'slave-dma/next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Nov 2011 00:50:34 +0000 (11:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Nov 2011 00:50:34 +0000 (11:50 +1100)
Conflicts:
drivers/dma/pl330.c

1  2 
drivers/dma/pl330.c

index a626e15799a5b4a3cd3fd8fe323286c6e23e3b91,186b8221803ec7bad7a16f28d9f1c05de9441440..83802b8fccaf2edac866e595bec7acb99ac9eee0
@@@ -870,8 -856,8 +870,8 @@@ pl330_probe(struct amba_device *adev, c
        INIT_LIST_HEAD(&pd->channels);
  
        /* Initialize channel parameters */
-       num_chan = max(pdat ? pdat->nr_valid_peri : (u8)pi->pcfg.num_peri,
-                       (u8)pi->pcfg.num_chan);
 -      num_chan = max(pdat ? (int)pdat->nr_valid_peri : 0,
 -                                      (int)pi->pcfg.num_chan);
++      num_chan = max(pdat ? (int)pdat->nr_valid_peri : (int)pi->pcfg.num_peri,
++                      (int)pi->pcfg.num_chan);
        pdmac->peripherals = kzalloc(num_chan * sizeof(*pch), GFP_KERNEL);
  
        for (i = 0; i < num_chan; i++) {