aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r--drivers/pcmcia/ds.c3
1 files changed, 1 insertions, 2 deletions
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)) {