ds.c (cef9bc56e1e944afd11f96de569657117a138c6d) | ds.c (ed283e9f0a2cc0541870828c76c6c6997c51a318) |
---|---|
1/* 2 * ds.c -- 16-bit PCMCIA core support 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * The initial developer of the original code is David A. Hinds --- 143 unchanged lines hidden (view full) --- 152pcmcia_create_newid_file(struct pcmcia_driver *drv) 153{ 154 int error = 0; 155 if (drv->probe != NULL) 156 error = driver_create_file(&drv->drv, &driver_attr_new_id); 157 return error; 158} 159 | 1/* 2 * ds.c -- 16-bit PCMCIA core support 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * The initial developer of the original code is David A. Hinds --- 143 unchanged lines hidden (view full) --- 152pcmcia_create_newid_file(struct pcmcia_driver *drv) 153{ 154 int error = 0; 155 if (drv->probe != NULL) 156 error = driver_create_file(&drv->drv, &driver_attr_new_id); 157 return error; 158} 159 |
160static void 161pcmcia_remove_newid_file(struct pcmcia_driver *drv) 162{ 163 driver_remove_file(&drv->drv, &driver_attr_new_id); 164} |
|
160 161/** 162 * pcmcia_register_driver - register a PCMCIA driver with the bus core 163 * @driver: the &driver being registered 164 * 165 * Registers a PCMCIA driver with the PCMCIA bus core. 166 */ 167int pcmcia_register_driver(struct pcmcia_driver *driver) --- 28 unchanged lines hidden (view full) --- 196 197/** 198 * pcmcia_unregister_driver - unregister a PCMCIA driver with the bus core 199 * @driver: the &driver being unregistered 200 */ 201void pcmcia_unregister_driver(struct pcmcia_driver *driver) 202{ 203 pr_debug("unregistering driver %s\n", driver->name); | 165 166/** 167 * pcmcia_register_driver - register a PCMCIA driver with the bus core 168 * @driver: the &driver being registered 169 * 170 * Registers a PCMCIA driver with the PCMCIA bus core. 171 */ 172int pcmcia_register_driver(struct pcmcia_driver *driver) --- 28 unchanged lines hidden (view full) --- 201 202/** 203 * pcmcia_unregister_driver - unregister a PCMCIA driver with the bus core 204 * @driver: the &driver being unregistered 205 */ 206void pcmcia_unregister_driver(struct pcmcia_driver *driver) 207{ 208 pr_debug("unregistering driver %s\n", driver->name); |
209 pcmcia_remove_newid_file(driver); |
|
204 driver_unregister(&driver->drv); 205 pcmcia_free_dynids(driver); 206} 207EXPORT_SYMBOL(pcmcia_unregister_driver); 208 209 210/* pcmcia_device handling */ 211 --- 1228 unchanged lines hidden --- | 210 driver_unregister(&driver->drv); 211 pcmcia_free_dynids(driver); 212} 213EXPORT_SYMBOL(pcmcia_unregister_driver); 214 215 216/* pcmcia_device handling */ 217 --- 1228 unchanged lines hidden --- |