Skip to content

Commit

Permalink
[ATM]: [he] fixing compilation when you define USE_RBPS_POOL/USE_RBPL…
Browse files Browse the repository at this point in the history
…_POOL

Signed-off-by: Jorge Boncompte <jorge@dti2.net>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jorge Boncompte authored and David S. Miller committed Jan 28, 2008
1 parent a5929af commit 7d1f8db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/atm/he.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,8 @@ he_stop(struct he_dev *he_dev)

if (he_dev->rbpl_base) {
#ifdef USE_RBPL_POOL
int i;

for (i = 0; i < CONFIG_RBPL_SIZE; ++i) {
void *cpuaddr = he_dev->rbpl_virt[i].virt;
dma_addr_t dma_handle = he_dev->rbpl_base[i].phys;
Expand All @@ -1659,6 +1661,8 @@ he_stop(struct he_dev *he_dev)
#ifdef USE_RBPS
if (he_dev->rbps_base) {
#ifdef USE_RBPS_POOL
int i;

for (i = 0; i < CONFIG_RBPS_SIZE; ++i) {
void *cpuaddr = he_dev->rbps_virt[i].virt;
dma_addr_t dma_handle = he_dev->rbps_base[i].phys;
Expand Down

0 comments on commit 7d1f8db

Please sign in to comment.