Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151276
b: refs/heads/master
c: f3e7a7b
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jun 16, 2009
1 parent 70711cd commit 0fcf561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8952f593ea66bff4a30f9e641dc6c79832ca64cf
refs/heads/master: f3e7a7b64a79a3d82835ce83fb32616df762d456
8 changes: 4 additions & 4 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ static int pcmcia_device_probe(struct device * dev)
p_drv = to_pcmcia_drv(dev->driver);
s = p_dev->socket;

/* The PCMCIA code passes the match data in via dev->driver_data
/* The PCMCIA code passes the match data in via dev_set_drvdata(dev)
* which is an ugly hack. Once the driver probe is called it may
* and often will overwrite the match data so we must save it first
*
Expand All @@ -404,7 +404,7 @@ static int pcmcia_device_probe(struct device * dev)
* call which will then check whether there are two
* pseudo devices, and if not, add the second one.
*/
did = p_dev->dev.driver_data;
did = dev_get_drvdata(&p_dev->dev);

ds_dev_dbg(1, dev, "trying to bind to %s\n", p_drv->drv.name);

Expand Down Expand Up @@ -499,7 +499,7 @@ static int pcmcia_device_remove(struct device * dev)
* pseudo multi-function card, we need to unbind
* all devices
*/
did = p_dev->dev.driver_data;
did = dev_get_drvdata(&p_dev->dev);
if (did && (did->match_flags & PCMCIA_DEV_ID_MATCH_DEVICE_NO) &&
(p_dev->socket->device_count != 0) &&
(p_dev->device_no == 0))
Expand Down Expand Up @@ -978,7 +978,7 @@ static inline int pcmcia_devmatch(struct pcmcia_device *dev,
return 0;
}

dev->dev.driver_data = (void *) did;
dev_set_drvdata(&dev->dev, did);

return 1;
}
Expand Down

0 comments on commit 0fcf561

Please sign in to comment.