diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-13 14:39:35 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-12-13 14:39:35 -0500 |
commit | fc7736688b046f91170591625b38f12a839ba994 (patch) | |
tree | e7198a9fabfcea785cbb16375455dbdb6aa9871b /drivers/pcmcia | |
parent | bc7ecbcbc2c0ff235382077b55de7896775afc16 (diff) | |
parent | 9074e144c10cba5d6bb6b326a8be5347d38e4473 (diff) |
Merge branch 'master' into devel
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/pxa2xx_base.c | 16 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_base.h | 3 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_palmtc.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/pxa2xx_stargate2.c | 2 |
4 files changed, 7 insertions, 16 deletions
diff --git a/drivers/pcmcia/pxa2xx_base.c b/drivers/pcmcia/pxa2xx_base.c index 87481ce60dfb..da346eb7e77e 100644 --- a/drivers/pcmcia/pxa2xx_base.c +++ b/drivers/pcmcia/pxa2xx_base.c | |||
@@ -253,6 +253,7 @@ int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt) | |||
253 | 253 | ||
254 | return soc_pcmcia_add_one(skt); | 254 | return soc_pcmcia_add_one(skt); |
255 | } | 255 | } |
256 | EXPORT_SYMBOL(pxa2xx_drv_pcmcia_add_one); | ||
256 | 257 | ||
257 | void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops) | 258 | void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops) |
258 | { | 259 | { |
@@ -262,19 +263,19 @@ void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops) | |||
262 | ops->frequency_change = pxa2xx_pcmcia_frequency_change; | 263 | ops->frequency_change = pxa2xx_pcmcia_frequency_change; |
263 | #endif | 264 | #endif |
264 | } | 265 | } |
266 | EXPORT_SYMBOL(pxa2xx_drv_pcmcia_ops); | ||
265 | 267 | ||
266 | int __pxa2xx_drv_pcmcia_probe(struct device *dev) | 268 | static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev) |
267 | { | 269 | { |
268 | int i, ret = 0; | 270 | int i, ret = 0; |
269 | struct pcmcia_low_level *ops; | 271 | struct pcmcia_low_level *ops; |
270 | struct skt_dev_info *sinfo; | 272 | struct skt_dev_info *sinfo; |
271 | struct soc_pcmcia_socket *skt; | 273 | struct soc_pcmcia_socket *skt; |
272 | 274 | ||
273 | if (!dev || !dev->platform_data) | 275 | ops = (struct pcmcia_low_level *)dev->dev.platform_data; |
276 | if (!ops) | ||
274 | return -ENODEV; | 277 | return -ENODEV; |
275 | 278 | ||
276 | ops = (struct pcmcia_low_level *)dev->platform_data; | ||
277 | |||
278 | pxa2xx_drv_pcmcia_ops(ops); | 279 | pxa2xx_drv_pcmcia_ops(ops); |
279 | 280 | ||
280 | sinfo = kzalloc(SKT_DEV_INFO_SIZE(ops->nr), GFP_KERNEL); | 281 | sinfo = kzalloc(SKT_DEV_INFO_SIZE(ops->nr), GFP_KERNEL); |
@@ -309,13 +310,6 @@ int __pxa2xx_drv_pcmcia_probe(struct device *dev) | |||
309 | 310 | ||
310 | return ret; | 311 | return ret; |
311 | } | 312 | } |
312 | EXPORT_SYMBOL(__pxa2xx_drv_pcmcia_probe); | ||
313 | |||
314 | |||
315 | static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev) | ||
316 | { | ||
317 | return __pxa2xx_drv_pcmcia_probe(&dev->dev); | ||
318 | } | ||
319 | 313 | ||
320 | static int pxa2xx_drv_pcmcia_remove(struct platform_device *dev) | 314 | static int pxa2xx_drv_pcmcia_remove(struct platform_device *dev) |
321 | { | 315 | { |
diff --git a/drivers/pcmcia/pxa2xx_base.h b/drivers/pcmcia/pxa2xx_base.h index cb5efaec886f..bb62ea87b8f9 100644 --- a/drivers/pcmcia/pxa2xx_base.h +++ b/drivers/pcmcia/pxa2xx_base.h | |||
@@ -1,6 +1,3 @@ | |||
1 | /* temporary measure */ | ||
2 | extern int __pxa2xx_drv_pcmcia_probe(struct device *); | ||
3 | |||
4 | int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt); | 1 | int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt); |
5 | void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops); | 2 | void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops); |
6 | 3 | ||
diff --git a/drivers/pcmcia/pxa2xx_palmtc.c b/drivers/pcmcia/pxa2xx_palmtc.c index 3a8993ed5621..459a232d66be 100644 --- a/drivers/pcmcia/pxa2xx_palmtc.c +++ b/drivers/pcmcia/pxa2xx_palmtc.c | |||
@@ -67,7 +67,7 @@ static int palmtc_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | |||
67 | if (ret) | 67 | if (ret) |
68 | goto err7; | 68 | goto err7; |
69 | 69 | ||
70 | skt->irq = IRQ_GPIO(GPIO_NR_PALMTC_PCMCIA_READY); | 70 | skt->socket.pci_irq = IRQ_GPIO(GPIO_NR_PALMTC_PCMCIA_READY); |
71 | return 0; | 71 | return 0; |
72 | 72 | ||
73 | err7: | 73 | err7: |
diff --git a/drivers/pcmcia/pxa2xx_stargate2.c b/drivers/pcmcia/pxa2xx_stargate2.c index 490749ea677f..d08802fe35f9 100644 --- a/drivers/pcmcia/pxa2xx_stargate2.c +++ b/drivers/pcmcia/pxa2xx_stargate2.c | |||
@@ -40,7 +40,7 @@ static struct pcmcia_irqs irqs[] = { | |||
40 | 40 | ||
41 | static int sg2_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | 41 | static int sg2_pcmcia_hw_init(struct soc_pcmcia_socket *skt) |
42 | { | 42 | { |
43 | skt->irq = IRQ_GPIO(SG2_S0_GPIO_READY); | 43 | skt->socket.pci_irq = IRQ_GPIO(SG2_S0_GPIO_READY); |
44 | return soc_pcmcia_request_irqs(skt, irqs, ARRAY_SIZE(irqs)); | 44 | return soc_pcmcia_request_irqs(skt, irqs, ARRAY_SIZE(irqs)); |
45 | } | 45 | } |
46 | 46 | ||