diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-16 11:11:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-16 11:11:23 -0400 |
commit | 0950efd1a1490e869d19ec631eed75ef57772f8b (patch) | |
tree | ee1138885190a3c7f6a0631c118ebb4ecbd3cb7a /drivers/pcmcia | |
parent | 4406c56d0a4da7a37b9180abeaece6cd00bcc874 (diff) | |
parent | 889c27744c30eb7a43b68c11e33e679cfafc8cd5 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pcmcia-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/pcmcia-2.6:
pcmcia: document return value of pcmcia_loop_config
pcmcia: dtl1_cs: fix pcmcia_loop_config logic
pcmcia: drop non-existant includes
pcmcia: disable prefetch/burst for OZ6933
pcmcia: fix incorrect argument order to list_add_tail()
pcmcia: drivers/pcmcia/pcmcia_resource.c: Remove unnecessary semicolons
pcmcia: Use phys_addr_t for physical addresses
pcmcia: drivers/pcmcia: Make static
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/au1000_pb1x00.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/au1000_xxs1500.c | 1 | ||||
-rw-r--r-- | drivers/pcmcia/ds.c | 3 | ||||
-rw-r--r-- | drivers/pcmcia/o2micro.h | 4 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 6 |
6 files changed, 9 insertions, 8 deletions
diff --git a/drivers/pcmcia/au1000_pb1x00.c b/drivers/pcmcia/au1000_pb1x00.c index d6b4bd1db7d7..b1984ed72d1d 100644 --- a/drivers/pcmcia/au1000_pb1x00.c +++ b/drivers/pcmcia/au1000_pb1x00.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
27 | #include <linux/ioport.h> | 27 | #include <linux/ioport.h> |
28 | #include <linux/kernel.h> | 28 | #include <linux/kernel.h> |
29 | #include <linux/tqueue.h> | ||
30 | #include <linux/timer.h> | 29 | #include <linux/timer.h> |
31 | #include <linux/mm.h> | 30 | #include <linux/mm.h> |
32 | #include <linux/proc_fs.h> | 31 | #include <linux/proc_fs.h> |
diff --git a/drivers/pcmcia/au1000_xxs1500.c b/drivers/pcmcia/au1000_xxs1500.c index 9627390835ca..b43d47b50819 100644 --- a/drivers/pcmcia/au1000_xxs1500.c +++ b/drivers/pcmcia/au1000_xxs1500.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/delay.h> | 30 | #include <linux/delay.h> |
31 | #include <linux/ioport.h> | 31 | #include <linux/ioport.h> |
32 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
33 | #include <linux/tqueue.h> | ||
34 | #include <linux/timer.h> | 33 | #include <linux/timer.h> |
35 | #include <linux/mm.h> | 34 | #include <linux/mm.h> |
36 | #include <linux/proc_fs.h> | 35 | #include <linux/proc_fs.h> |
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 304ff6d5cf3b..9f300d3cb125 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -236,7 +236,6 @@ pcmcia_store_new_id(struct device_driver *driver, const char *buf, size_t count) | |||
236 | if (!dynid) | 236 | if (!dynid) |
237 | return -ENOMEM; | 237 | return -ENOMEM; |
238 | 238 | ||
239 | INIT_LIST_HEAD(&dynid->node); | ||
240 | dynid->id.match_flags = match_flags; | 239 | dynid->id.match_flags = match_flags; |
241 | dynid->id.manf_id = manf_id; | 240 | dynid->id.manf_id = manf_id; |
242 | dynid->id.card_id = card_id; | 241 | dynid->id.card_id = card_id; |
@@ -246,7 +245,7 @@ pcmcia_store_new_id(struct device_driver *driver, const char *buf, size_t count) | |||
246 | memcpy(dynid->id.prod_id_hash, prod_id_hash, sizeof(__u32) * 4); | 245 | memcpy(dynid->id.prod_id_hash, prod_id_hash, sizeof(__u32) * 4); |
247 | 246 | ||
248 | spin_lock(&pdrv->dynids.lock); | 247 | spin_lock(&pdrv->dynids.lock); |
249 | list_add_tail(&pdrv->dynids.list, &dynid->node); | 248 | list_add_tail(&dynid->node, &pdrv->dynids.list); |
250 | spin_unlock(&pdrv->dynids.lock); | 249 | spin_unlock(&pdrv->dynids.lock); |
251 | 250 | ||
252 | if (get_driver(&pdrv->drv)) { | 251 | if (get_driver(&pdrv->drv)) { |
diff --git a/drivers/pcmcia/o2micro.h b/drivers/pcmcia/o2micro.h index 5554015a7813..72188c462c9c 100644 --- a/drivers/pcmcia/o2micro.h +++ b/drivers/pcmcia/o2micro.h | |||
@@ -48,6 +48,9 @@ | |||
48 | #ifndef PCI_DEVICE_ID_O2_6812 | 48 | #ifndef PCI_DEVICE_ID_O2_6812 |
49 | #define PCI_DEVICE_ID_O2_6812 0x6872 | 49 | #define PCI_DEVICE_ID_O2_6812 0x6872 |
50 | #endif | 50 | #endif |
51 | #ifndef PCI_DEVICE_ID_O2_6933 | ||
52 | #define PCI_DEVICE_ID_O2_6933 0x6933 | ||
53 | #endif | ||
51 | 54 | ||
52 | /* Additional PCI configuration registers */ | 55 | /* Additional PCI configuration registers */ |
53 | 56 | ||
@@ -154,6 +157,7 @@ static int o2micro_override(struct yenta_socket *socket) | |||
154 | case PCI_DEVICE_ID_O2_6812: | 157 | case PCI_DEVICE_ID_O2_6812: |
155 | case PCI_DEVICE_ID_O2_6832: | 158 | case PCI_DEVICE_ID_O2_6832: |
156 | case PCI_DEVICE_ID_O2_6836: | 159 | case PCI_DEVICE_ID_O2_6836: |
160 | case PCI_DEVICE_ID_O2_6933: | ||
157 | dev_printk(KERN_INFO, &socket->dev->dev, | 161 | dev_printk(KERN_INFO, &socket->dev->dev, |
158 | "Yenta O2: old bridge, disabling read " | 162 | "Yenta O2: old bridge, disabling read " |
159 | "prefetch/write burst\n"); | 163 | "prefetch/write burst\n"); |
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index 6095f8daecd7..7b424e0b0449 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -286,7 +286,7 @@ static int pccard_get_status(struct pcmcia_socket *s, | |||
286 | return 0; | 286 | return 0; |
287 | } /* pccard_get_status */ | 287 | } /* pccard_get_status */ |
288 | 288 | ||
289 | int pccard_get_configuration_info(struct pcmcia_socket *s, | 289 | static int pccard_get_configuration_info(struct pcmcia_socket *s, |
290 | struct pcmcia_device *p_dev, | 290 | struct pcmcia_device *p_dev, |
291 | config_info_t *config) | 291 | config_info_t *config) |
292 | { | 292 | { |
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index f5d0ba8e22d5..d919e96c0afd 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -489,7 +489,7 @@ int pcmcia_request_configuration(struct pcmcia_device *p_dev, | |||
489 | pccard_io_map iomap; | 489 | pccard_io_map iomap; |
490 | 490 | ||
491 | if (!(s->state & SOCKET_PRESENT)) | 491 | if (!(s->state & SOCKET_PRESENT)) |
492 | return -ENODEV;; | 492 | return -ENODEV; |
493 | 493 | ||
494 | if (req->IntType & INT_CARDBUS) { | 494 | if (req->IntType & INT_CARDBUS) { |
495 | ds_dbg(p_dev->socket, 0, "IntType may not be INT_CARDBUS\n"); | 495 | ds_dbg(p_dev->socket, 0, "IntType may not be INT_CARDBUS\n"); |
@@ -902,7 +902,7 @@ struct pcmcia_cfg_mem { | |||
902 | * | 902 | * |
903 | * pcmcia_loop_config() loops over all configuration options, and calls | 903 | * pcmcia_loop_config() loops over all configuration options, and calls |
904 | * the driver-specific conf_check() for each one, checking whether | 904 | * the driver-specific conf_check() for each one, checking whether |
905 | * it is a valid one. | 905 | * it is a valid one. Returns 0 on success or errorcode otherwise. |
906 | */ | 906 | */ |
907 | int pcmcia_loop_config(struct pcmcia_device *p_dev, | 907 | int pcmcia_loop_config(struct pcmcia_device *p_dev, |
908 | int (*conf_check) (struct pcmcia_device *p_dev, | 908 | int (*conf_check) (struct pcmcia_device *p_dev, |
@@ -915,7 +915,7 @@ int pcmcia_loop_config(struct pcmcia_device *p_dev, | |||
915 | struct pcmcia_cfg_mem *cfg_mem; | 915 | struct pcmcia_cfg_mem *cfg_mem; |
916 | 916 | ||
917 | tuple_t *tuple; | 917 | tuple_t *tuple; |
918 | int ret = -ENODEV; | 918 | int ret; |
919 | unsigned int vcc; | 919 | unsigned int vcc; |
920 | 920 | ||
921 | cfg_mem = kzalloc(sizeof(struct pcmcia_cfg_mem), GFP_KERNEL); | 921 | cfg_mem = kzalloc(sizeof(struct pcmcia_cfg_mem), GFP_KERNEL); |