pxa2xx_dma: drop unused pxa2xx_dma_handler_t/handler field
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Sun, 20 Feb 2011 13:50:36 +0000 (16:50 +0300)
committerAndrzej Zaborowski <balrog@zabor.org>
Thu, 3 Mar 2011 13:50:20 +0000 (14:50 +0100)
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/pxa2xx_dma.c

index b512d34501da1280548c8e93d0bcbfe936ed3f0b..92c3e1ee2057e352317b4efa9017138ad2fb2a9b 100644 (file)
@@ -20,11 +20,7 @@ typedef struct {
     int request;
 } PXA2xxDMAChannel;
 
-/* Allow the DMA to be used as a PIC.  */
-typedef void (*pxa2xx_dma_handler_t)(void *opaque, int irq, int level);
-
 struct PXA2xxDMAState {
-    pxa2xx_dma_handler_t handler;
     qemu_irq irq;
 
     uint32_t stopintr;
@@ -494,7 +490,6 @@ static PXA2xxDMAState *pxa2xx_dma_init(target_phys_addr_t base,
     s->channels = channels;
     s->chan = qemu_mallocz(sizeof(PXA2xxDMAChannel) * s->channels);
     s->irq = irq;
-    s->handler = (pxa2xx_dma_handler_t) pxa2xx_dma_request;
     s->req = qemu_mallocz(sizeof(uint8_t) * PXA2XX_DMA_NUM_REQUESTS);
 
     memset(s->chan, 0, sizeof(PXA2xxDMAChannel) * s->channels);