Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169122
b: refs/heads/master
c: be85458
h: refs/heads/master
v: v3
  • Loading branch information
Russell King - ARM Linux authored and Dominik Brodowski committed Nov 9, 2009
1 parent ce3d194 commit db0a971
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 21 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: 097e296d6175881eba7244de7222de61e9569911
refs/heads/master: be85458edce0f165cff62622f5e73b1d17b1e228
11 changes: 10 additions & 1 deletion trunk/drivers/pcmcia/pxa2xx_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,16 @@ static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev)

static int pxa2xx_drv_pcmcia_remove(struct platform_device *dev)
{
return soc_common_drv_pcmcia_remove(&dev->dev);
struct skt_dev_info *sinfo = platform_get_drvdata(dev);
int i;

platform_set_drvdata(dev, NULL);

for (i = 0; i < sinfo->nskt; i++)
soc_pcmcia_remove_one(&sinfo->skt[i]);

kfree(sinfo);
return 0;
}

static int pxa2xx_drv_pcmcia_suspend(struct device *dev)
Expand Down
11 changes: 10 additions & 1 deletion trunk/drivers/pcmcia/sa1100_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,16 @@ static int sa11x0_drv_pcmcia_probe(struct platform_device *dev)

static int sa11x0_drv_pcmcia_remove(struct platform_device *dev)
{
return soc_common_drv_pcmcia_remove(&dev->dev);
struct skt_dev_info *sinfo = platform_get_drvdata(dev);
int i;

platform_set_drvdata(dev, NULL);

for (i = 0; i < sinfo->nskt; i++)
soc_pcmcia_remove_one(&sinfo->skt[i]);

kfree(sinfo);
return 0;
}

static int sa11x0_drv_pcmcia_suspend(struct platform_device *dev,
Expand Down
10 changes: 9 additions & 1 deletion trunk/drivers/pcmcia/sa1111_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,15 @@ static int pcmcia_probe(struct sa1111_dev *dev)

static int __devexit pcmcia_remove(struct sa1111_dev *dev)
{
soc_common_drv_pcmcia_remove(&dev->dev);
struct skt_dev_info *sinfo = dev_get_drvdata(&dev->dev);
int i;

dev_set_drvdata(&dev->dev, NULL);

for (i = 0; i < sinfo->nskt; i++)
soc_pcmcia_remove_one(&sinfo->skt[i]);

kfree(sinfo);
release_mem_region(dev->res.start, 512);
return 0;
}
Expand Down
16 changes: 0 additions & 16 deletions trunk/drivers/pcmcia/soc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,22 +778,6 @@ int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops
}
EXPORT_SYMBOL(soc_common_drv_pcmcia_probe);

int soc_common_drv_pcmcia_remove(struct device *dev)
{
struct skt_dev_info *sinfo = dev_get_drvdata(dev);
int i;

dev_set_drvdata(dev, NULL);

for (i = 0; i < sinfo->nskt; i++)
soc_pcmcia_remove_one(&sinfo->skt[i]);

kfree(sinfo);

return 0;
}
EXPORT_SYMBOL(soc_common_drv_pcmcia_remove);

MODULE_AUTHOR("John Dorsey <john+@cs.cmu.edu>");
MODULE_DESCRIPTION("Linux PCMCIA Card Services: Common SoC support");
MODULE_LICENSE("Dual MPL/GPL");
1 change: 0 additions & 1 deletion trunk/drivers/pcmcia/soc_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ void soc_pcmcia_remove_one(struct soc_pcmcia_socket *skt);
int soc_pcmcia_add_one(struct soc_pcmcia_socket *skt);

extern int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops, struct skt_dev_info *sinfo);
extern int soc_common_drv_pcmcia_remove(struct device *dev);


#ifdef CONFIG_PCMCIA_DEBUG
Expand Down

0 comments on commit db0a971

Please sign in to comment.