diff options
author | Ira Snyder <iws@ovro.caltech.edu> | 2010-01-06 08:34:03 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-02-02 16:51:41 -0500 |
commit | e7a29151de1bd52081f27f149b68074fac0323be (patch) | |
tree | 72fa616e49d5ca99e0a1dc79f467e73d071d5dd9 /drivers/dma/fsldma.h | |
parent | 738f5f7e1ae876448cb7d9c82bea258b69386647 (diff) |
fsldma: clean up the OF subsystem routines
This fixes some errors in the cleanup paths of the OF subsystem, including
missing checks for ioremap failing. Also, some variables were renamed for
brevity.
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/fsldma.h')
-rw-r--r-- | drivers/dma/fsldma.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index a67b8e3df0fa..ea3b19c8708c 100644 --- a/drivers/dma/fsldma.h +++ b/drivers/dma/fsldma.h | |||
@@ -108,7 +108,7 @@ struct fsldma_chan; | |||
108 | #define FSL_DMA_MAX_CHANS_PER_DEVICE 4 | 108 | #define FSL_DMA_MAX_CHANS_PER_DEVICE 4 |
109 | 109 | ||
110 | struct fsldma_device { | 110 | struct fsldma_device { |
111 | void __iomem *reg_base; /* DGSR register base */ | 111 | void __iomem *regs; /* DGSR register base */ |
112 | struct device *dev; | 112 | struct device *dev; |
113 | struct dma_device common; | 113 | struct dma_device common; |
114 | struct fsldma_chan *chan[FSL_DMA_MAX_CHANS_PER_DEVICE]; | 114 | struct fsldma_chan *chan[FSL_DMA_MAX_CHANS_PER_DEVICE]; |
@@ -128,7 +128,7 @@ struct fsldma_device { | |||
128 | #define FSL_DMA_CHAN_START_EXT 0x00002000 | 128 | #define FSL_DMA_CHAN_START_EXT 0x00002000 |
129 | 129 | ||
130 | struct fsldma_chan { | 130 | struct fsldma_chan { |
131 | struct fsldma_chan_regs __iomem *reg_base; | 131 | struct fsldma_chan_regs __iomem *regs; |
132 | dma_cookie_t completed_cookie; /* The maximum cookie completed */ | 132 | dma_cookie_t completed_cookie; /* The maximum cookie completed */ |
133 | spinlock_t desc_lock; /* Descriptor operation lock */ | 133 | spinlock_t desc_lock; /* Descriptor operation lock */ |
134 | struct list_head ld_queue; /* Link descriptors queue */ | 134 | struct list_head ld_queue; /* Link descriptors queue */ |