aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pcmcia/ds.c4
-rw-r--r--include/pcmcia/ds.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index 55baa1f0fcbb..7bf78c127898 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -23,6 +23,7 @@
23#include <linux/crc32.h> 23#include <linux/crc32.h>
24#include <linux/firmware.h> 24#include <linux/firmware.h>
25#include <linux/kref.h> 25#include <linux/kref.h>
26#include <linux/dma-mapping.h>
26 27
27#define IN_CARD_SERVICES 28#define IN_CARD_SERVICES
28#include <pcmcia/cs_types.h> 29#include <pcmcia/cs_types.h>
@@ -670,6 +671,9 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f
670 p_dev->dev.bus = &pcmcia_bus_type; 671 p_dev->dev.bus = &pcmcia_bus_type;
671 p_dev->dev.parent = s->dev.parent; 672 p_dev->dev.parent = s->dev.parent;
672 p_dev->dev.release = pcmcia_release_dev; 673 p_dev->dev.release = pcmcia_release_dev;
674 /* by default don't allow DMA */
675 p_dev->dma_mask = DMA_MASK_NONE;
676 p_dev->dev.dma_mask = &p_dev->dma_mask;
673 bus_id_len = sprintf (p_dev->dev.bus_id, "%d.%d", p_dev->socket->sock, p_dev->device_no); 677 bus_id_len = sprintf (p_dev->dev.bus_id, "%d.%d", p_dev->socket->sock, p_dev->device_no);
674 678
675 p_dev->devname = kmalloc(6 + bus_id_len + 1, GFP_KERNEL); 679 p_dev->devname = kmalloc(6 + bus_id_len + 1, GFP_KERNEL);
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index 90ef552c42dd..f047a1fd64f8 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -184,6 +184,7 @@ struct pcmcia_device {
184 184
185 char * prod_id[4]; 185 char * prod_id[4];
186 186
187 u64 dma_mask;
187 struct device dev; 188 struct device dev;
188 189
189#ifdef CONFIG_PCMCIA_IOCTL 190#ifdef CONFIG_PCMCIA_IOCTL