aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-12-12 05:07:34 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-12-12 05:08:12 -0500
commitd0d26c33b63c7ec10c3fdf9c7ce0aa035f0b3200 (patch)
tree08b3e4ac1ab492c72791f4ec4fdd8ec0159e86da
parent053fe57ac249a9531c396175778160d9e9509399 (diff)
PCMCIA: fix pxa2xx_lubbock modular build error
ERROR: "pxa2xx_drv_pcmcia_ops" [drivers/pcmcia/pxa2xx_lubbock_cs.ko] undefined! ERROR: "pxa2xx_drv_pcmcia_add_one" [drivers/pcmcia/pxa2xx_lubbock_cs.ko] undefined! We also remove __pxa2xx_drv_pcmcia_probe and its export, since this is no longer required. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/pcmcia/pxa2xx_base.c16
-rw-r--r--drivers/pcmcia/pxa2xx_base.h3
2 files changed, 5 insertions, 14 deletions
diff --git a/drivers/pcmcia/pxa2xx_base.c b/drivers/pcmcia/pxa2xx_base.c
index 84dde7768ad5..bae8e6e2d48c 100644
--- a/drivers/pcmcia/pxa2xx_base.c
+++ b/drivers/pcmcia/pxa2xx_base.c
@@ -252,6 +252,7 @@ int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt)
252 252
253 return soc_pcmcia_add_one(skt); 253 return soc_pcmcia_add_one(skt);
254} 254}
255EXPORT_SYMBOL(pxa2xx_drv_pcmcia_add_one);
255 256
256void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops) 257void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops)
257{ 258{
@@ -261,19 +262,19 @@ void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops)
261 ops->frequency_change = pxa2xx_pcmcia_frequency_change; 262 ops->frequency_change = pxa2xx_pcmcia_frequency_change;
262#endif 263#endif
263} 264}
265EXPORT_SYMBOL(pxa2xx_drv_pcmcia_ops);
264 266
265int __pxa2xx_drv_pcmcia_probe(struct device *dev) 267static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev)
266{ 268{
267 int i, ret = 0; 269 int i, ret = 0;
268 struct pcmcia_low_level *ops; 270 struct pcmcia_low_level *ops;
269 struct skt_dev_info *sinfo; 271 struct skt_dev_info *sinfo;
270 struct soc_pcmcia_socket *skt; 272 struct soc_pcmcia_socket *skt;
271 273
272 if (!dev || !dev->platform_data) 274 ops = (struct pcmcia_low_level *)dev->dev.platform_data;
275 if (!ops)
273 return -ENODEV; 276 return -ENODEV;
274 277
275 ops = (struct pcmcia_low_level *)dev->platform_data;
276
277 pxa2xx_drv_pcmcia_ops(ops); 278 pxa2xx_drv_pcmcia_ops(ops);
278 279
279 sinfo = kzalloc(SKT_DEV_INFO_SIZE(ops->nr), GFP_KERNEL); 280 sinfo = kzalloc(SKT_DEV_INFO_SIZE(ops->nr), GFP_KERNEL);
@@ -308,13 +309,6 @@ int __pxa2xx_drv_pcmcia_probe(struct device *dev)
308 309
309 return ret; 310 return ret;
310} 311}
311EXPORT_SYMBOL(__pxa2xx_drv_pcmcia_probe);
312
313
314static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev)
315{
316 return __pxa2xx_drv_pcmcia_probe(&dev->dev);
317}
318 312
319static int pxa2xx_drv_pcmcia_remove(struct platform_device *dev) 313static int pxa2xx_drv_pcmcia_remove(struct platform_device *dev)
320{ 314{
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 */
2extern int __pxa2xx_drv_pcmcia_probe(struct device *);
3
4int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt); 1int pxa2xx_drv_pcmcia_add_one(struct soc_pcmcia_socket *skt);
5void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops); 2void pxa2xx_drv_pcmcia_ops(struct pcmcia_low_level *ops);
6 3