diff options
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 2 | ||||
-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 | ||||
-rw-r--r-- | include/pcmcia/ss.h | 4 |
8 files changed, 12 insertions, 11 deletions
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index 2cc7b3266eaf..b881a9cd8741 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -618,7 +618,7 @@ static int dtl1_config(struct pcmcia_device *link) | |||
618 | 618 | ||
619 | /* Look for a generic full-sized window */ | 619 | /* Look for a generic full-sized window */ |
620 | link->io.NumPorts1 = 8; | 620 | link->io.NumPorts1 = 8; |
621 | if (!pcmcia_loop_config(link, dtl1_confcheck, NULL)) | 621 | if (pcmcia_loop_config(link, dtl1_confcheck, NULL) < 0) |
622 | goto failed; | 622 | goto failed; |
623 | 623 | ||
624 | i = pcmcia_request_irq(link, &link->irq); | 624 | i = pcmcia_request_irq(link, &link->irq); |
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); |
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h index 9b4ac9385f5d..9a3b49865173 100644 --- a/include/pcmcia/ss.h +++ b/include/pcmcia/ss.h | |||
@@ -90,14 +90,14 @@ typedef struct pccard_io_map { | |||
90 | u_char map; | 90 | u_char map; |
91 | u_char flags; | 91 | u_char flags; |
92 | u_short speed; | 92 | u_short speed; |
93 | u_int start, stop; | 93 | phys_addr_t start, stop; |
94 | } pccard_io_map; | 94 | } pccard_io_map; |
95 | 95 | ||
96 | typedef struct pccard_mem_map { | 96 | typedef struct pccard_mem_map { |
97 | u_char map; | 97 | u_char map; |
98 | u_char flags; | 98 | u_char flags; |
99 | u_short speed; | 99 | u_short speed; |
100 | u_long static_start; | 100 | phys_addr_t static_start; |
101 | u_int card_start; | 101 | u_int card_start; |
102 | struct resource *res; | 102 | struct resource *res; |
103 | } pccard_mem_map; | 103 | } pccard_mem_map; |