diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-10-16 05:00:59 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 01:02:45 -0500 |
commit | 8c81bfbdb2bc52185500f6b16c14e56c0bb779fb (patch) | |
tree | ae541409768b5cc5c6e810f61b0526dbaee73e99 /drivers/dma | |
parent | 9d82faeb72007dc5bfbfa1d53dd08d5078dbb31b (diff) |
dmaengine: omap: Remove chancnt affectations
chanctnt is already filled by dma_async_device_register, which uses the channel
list to know how much channels there is.
Since it's already filled, we can safely remove it from the drivers' probe
function.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/omap-dma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index bbea8243f9e8..6ea1aded7e74 100644 --- a/drivers/dma/omap-dma.c +++ b/drivers/dma/omap-dma.c | |||
@@ -1074,8 +1074,6 @@ static int omap_dma_chan_init(struct omap_dmadev *od, int dma_sig) | |||
1074 | vchan_init(&c->vc, &od->ddev); | 1074 | vchan_init(&c->vc, &od->ddev); |
1075 | INIT_LIST_HEAD(&c->node); | 1075 | INIT_LIST_HEAD(&c->node); |
1076 | 1076 | ||
1077 | od->ddev.chancnt++; | ||
1078 | |||
1079 | return 0; | 1077 | return 0; |
1080 | } | 1078 | } |
1081 | 1079 | ||