mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] pcmcia: new suspend core
Move the suspend and resume methods out of the event handler, and into special functions. Also use these functions for pre- and post-reset, as almost all drivers already do, and the remaining ones can easily be converted. Bugfix to include/pcmcia/ds.c Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
63e7ebd064
commit
98e4c28b7e
45 changed files with 1431 additions and 991 deletions
|
|
@ -137,6 +137,10 @@ struct pcmcia_driver {
|
|||
int (*event) (event_t event, int priority,
|
||||
event_callback_args_t *);
|
||||
void (*detach)(dev_link_t *);
|
||||
|
||||
int (*suspend) (struct pcmcia_device *dev);
|
||||
int (*resume) (struct pcmcia_device *dev);
|
||||
|
||||
struct module *owner;
|
||||
struct pcmcia_device_id *id_table;
|
||||
struct device_driver drv;
|
||||
|
|
@ -193,6 +197,8 @@ struct pcmcia_device {
|
|||
#define handle_to_pdev(handle) (handle)
|
||||
#define handle_to_dev(handle) (handle->dev)
|
||||
|
||||
#define dev_to_instance(dev) (dev->instance)
|
||||
|
||||
/* error reporting */
|
||||
void cs_error(client_handle_t handle, int func, int ret);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue