diff options
Diffstat (limited to 'drivers/net/jme.h')
-rw-r--r-- | drivers/net/jme.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/jme.h b/drivers/net/jme.h index 0025e68aeb55..9d3cedd394a0 100644 --- a/drivers/net/jme.h +++ b/drivers/net/jme.h | |||
@@ -372,7 +372,6 @@ struct jme_buffer_info { | |||
372 | /* | 372 | /* |
373 | * The structure holding buffer information and ring descriptors all together. | 373 | * The structure holding buffer information and ring descriptors all together. |
374 | */ | 374 | */ |
375 | #define MAX_RING_DESC_NR 1024 | ||
376 | struct jme_ring { | 375 | struct jme_ring { |
377 | void *alloc; /* pointer to allocated memory */ | 376 | void *alloc; /* pointer to allocated memory */ |
378 | void *desc; /* pointer to ring memory */ | 377 | void *desc; /* pointer to ring memory */ |
@@ -380,7 +379,7 @@ struct jme_ring { | |||
380 | dma_addr_t dma; /* phys address for ring dma */ | 379 | dma_addr_t dma; /* phys address for ring dma */ |
381 | 380 | ||
382 | /* Buffer information corresponding to each descriptor */ | 381 | /* Buffer information corresponding to each descriptor */ |
383 | struct jme_buffer_info bufinf[MAX_RING_DESC_NR]; | 382 | struct jme_buffer_info *bufinf; |
384 | 383 | ||
385 | int next_to_use; | 384 | int next_to_use; |
386 | atomic_t next_to_clean; | 385 | atomic_t next_to_clean; |