aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-01-06 07:57:43 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2010-02-17 11:37:30 -0500
commit6e7b51a733fde86d3be748543215a69da04d5bb7 (patch)
tree4c608cf607ef1bb69231f4c67d45a9ac9429e650 /drivers/pcmcia/ds.c
parent4e8804ff6dd1a842d9531c819a0acc9eb3bcfa3b (diff)
pcmcia: move cistpl.c into pcmcia module
As PCMCIA is the only real user of CIS access functions, include cistpl.c in the PCMCIA module, not in the PCMCIA & CardBus core module. Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r--drivers/pcmcia/ds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index 7bb52b003f0e..0ab4fe045920 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -1313,6 +1313,7 @@ static struct pcmcia_callback pcmcia_bus_callback = {
1313 .owner = THIS_MODULE, 1313 .owner = THIS_MODULE,
1314 .event = ds_event, 1314 .event = ds_event,
1315 .requery = pcmcia_bus_rescan, 1315 .requery = pcmcia_bus_rescan,
1316 .validate = pccard_validate_cis,
1316 .suspend = pcmcia_bus_suspend, 1317 .suspend = pcmcia_bus_suspend,
1317 .resume = pcmcia_bus_resume, 1318 .resume = pcmcia_bus_resume,
1318}; 1319};
@@ -1336,6 +1337,13 @@ static int __devinit pcmcia_bus_add_socket(struct device *dev,
1336 */ 1337 */
1337 msleep(250); 1338 msleep(250);
1338 1339
1340 ret = sysfs_create_bin_file(&dev->kobj, &pccard_cis_attr);
1341 if (ret) {
1342 dev_printk(KERN_ERR, dev, "PCMCIA registration failed\n");
1343 pcmcia_put_socket(socket);
1344 return ret;
1345 }
1346
1339#ifdef CONFIG_PCMCIA_IOCTL 1347#ifdef CONFIG_PCMCIA_IOCTL
1340 init_waitqueue_head(&socket->queue); 1348 init_waitqueue_head(&socket->queue);
1341#endif 1349#endif
@@ -1371,6 +1379,8 @@ static void pcmcia_bus_remove_socket(struct device *dev,
1371 release_cis_mem(socket); 1379 release_cis_mem(socket);
1372 mutex_unlock(&socket->skt_mutex); 1380 mutex_unlock(&socket->skt_mutex);
1373 1381
1382 sysfs_remove_bin_file(&dev->kobj, &pccard_cis_attr);
1383
1374 pcmcia_put_socket(socket); 1384 pcmcia_put_socket(socket);
1375 1385
1376 return; 1386 return;