diff options
Diffstat (limited to 'arch/alpha/kernel/pci-noop.c')
-rw-r--r-- | arch/alpha/kernel/pci-noop.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/alpha/kernel/pci-noop.c b/arch/alpha/kernel/pci-noop.c index df24b76f9246..2b1f4a1e9272 100644 --- a/arch/alpha/kernel/pci-noop.c +++ b/arch/alpha/kernel/pci-noop.c | |||
@@ -166,15 +166,6 @@ static int alpha_noop_supported(struct device *dev, u64 mask) | |||
166 | return mask < 0x00ffffffUL ? 0 : 1; | 166 | return mask < 0x00ffffffUL ? 0 : 1; |
167 | } | 167 | } |
168 | 168 | ||
169 | static int alpha_noop_set_mask(struct device *dev, u64 mask) | ||
170 | { | ||
171 | if (!dev->dma_mask || !dma_supported(dev, mask)) | ||
172 | return -EIO; | ||
173 | |||
174 | *dev->dma_mask = mask; | ||
175 | return 0; | ||
176 | } | ||
177 | |||
178 | struct dma_map_ops alpha_noop_ops = { | 169 | struct dma_map_ops alpha_noop_ops = { |
179 | .alloc = alpha_noop_alloc_coherent, | 170 | .alloc = alpha_noop_alloc_coherent, |
180 | .free = alpha_noop_free_coherent, | 171 | .free = alpha_noop_free_coherent, |
@@ -182,7 +173,6 @@ struct dma_map_ops alpha_noop_ops = { | |||
182 | .map_sg = alpha_noop_map_sg, | 173 | .map_sg = alpha_noop_map_sg, |
183 | .mapping_error = alpha_noop_mapping_error, | 174 | .mapping_error = alpha_noop_mapping_error, |
184 | .dma_supported = alpha_noop_supported, | 175 | .dma_supported = alpha_noop_supported, |
185 | .set_dma_mask = alpha_noop_set_mask, | ||
186 | }; | 176 | }; |
187 | 177 | ||
188 | struct dma_map_ops *dma_ops = &alpha_noop_ops; | 178 | struct dma_map_ops *dma_ops = &alpha_noop_ops; |