Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69570
b: refs/heads/master
c: 43d9f7f
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley authored and Linus Torvalds committed Oct 16, 2007
1 parent 1674e91 commit 75d181b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32e8f70230c0c417490787b3f48b6ed6c48e7ec9
refs/heads/master: 43d9f7fda11a3413c99fbbde35005ec3138eb865
4 changes: 4 additions & 0 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/crc32.h>
#include <linux/firmware.h>
#include <linux/kref.h>
#include <linux/dma-mapping.h>

#define IN_CARD_SERVICES
#include <pcmcia/cs_types.h>
Expand Down Expand Up @@ -670,6 +671,9 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f
p_dev->dev.bus = &pcmcia_bus_type;
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->dev.dma_mask = &p_dev->dma_mask;
bus_id_len = sprintf (p_dev->dev.bus_id, "%d.%d", p_dev->socket->sock, p_dev->device_no);

p_dev->devname = kmalloc(6 + bus_id_len + 1, GFP_KERNEL);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/pcmcia/ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ struct pcmcia_device {

char * prod_id[4];

u64 dma_mask;
struct device dev;

#ifdef CONFIG_PCMCIA_IOCTL
Expand Down

0 comments on commit 75d181b

Please sign in to comment.