Skip to content

Commit

Permalink
dma-mapping: remove DMA_MASK_NONE
Browse files Browse the repository at this point in the history
This value is only used by a PCMCIA driver and not very useful.

Signed-off-by: Christoph Hellwig <[email protected]>
Acked-by: Dominik Brodowski <[email protected]>
  • Loading branch information
Christoph Hellwig committed Sep 25, 2020
1 parent b9bb694 commit 7ae10eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ static struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s,
p_dev->dev.parent = s->dev.parent;
p_dev->dev.release = pcmcia_release_dev;
/* by default don't allow DMA */
p_dev->dma_mask = DMA_MASK_NONE;
p_dev->dma_mask = 0;
p_dev->dev.dma_mask = &p_dev->dma_mask;
dev_set_name(&p_dev->dev, "%d.%d", p_dev->socket->sock, p_dev->device_no);
if (!dev_name(&p_dev->dev))
Expand Down
2 changes: 0 additions & 2 deletions include/linux/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ extern const struct dma_map_ops dma_dummy_ops;

#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))

#define DMA_MASK_NONE 0x0ULL

static inline int valid_dma_direction(int dma_direction)
{
return ((dma_direction == DMA_BIDIRECTIONAL) ||
Expand Down

0 comments on commit 7ae10eb

Please sign in to comment.