mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
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>
This commit is contained in:
parent
4e8804ff6d
commit
6e7b51a733
6 changed files with 194 additions and 198 deletions
|
@ -1313,6 +1313,7 @@ static struct pcmcia_callback pcmcia_bus_callback = {
|
|||
.owner = THIS_MODULE,
|
||||
.event = ds_event,
|
||||
.requery = pcmcia_bus_rescan,
|
||||
.validate = pccard_validate_cis,
|
||||
.suspend = pcmcia_bus_suspend,
|
||||
.resume = pcmcia_bus_resume,
|
||||
};
|
||||
|
@ -1336,6 +1337,13 @@ static int __devinit pcmcia_bus_add_socket(struct device *dev,
|
|||
*/
|
||||
msleep(250);
|
||||
|
||||
ret = sysfs_create_bin_file(&dev->kobj, &pccard_cis_attr);
|
||||
if (ret) {
|
||||
dev_printk(KERN_ERR, dev, "PCMCIA registration failed\n");
|
||||
pcmcia_put_socket(socket);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PCMCIA_IOCTL
|
||||
init_waitqueue_head(&socket->queue);
|
||||
#endif
|
||||
|
@ -1371,6 +1379,8 @@ static void pcmcia_bus_remove_socket(struct device *dev,
|
|||
release_cis_mem(socket);
|
||||
mutex_unlock(&socket->skt_mutex);
|
||||
|
||||
sysfs_remove_bin_file(&dev->kobj, &pccard_cis_attr);
|
||||
|
||||
pcmcia_put_socket(socket);
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue