diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-01 18:02:33 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 10:15:52 -0500 |
commit | 8661bb5b4af1849c1f5a4e80c4e275fd13c155d6 (patch) | |
tree | ad99d85ea8d6f5c4c99b93f869bfd412994fb4ee /drivers/isdn/hisax/teles_cs.c | |
parent | 50db3fdbbc98260fb538c1cc3f8cc597ba7bffe7 (diff) |
[PATCH] pcmcia: default suspend and resume handling
In all but one case, the suspend and resume functions of PCMCIA drivers
contain mostly of calls to pcmcia_release_configuration() and
pcmcia_request_configuration(). Therefore, move this code out of the
drivers and into the core.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/isdn/hisax/teles_cs.c')
-rw-r--r-- | drivers/isdn/hisax/teles_cs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/isdn/hisax/teles_cs.c b/drivers/isdn/hisax/teles_cs.c index 7945fd64621a..929507eb63af 100644 --- a/drivers/isdn/hisax/teles_cs.c +++ b/drivers/isdn/hisax/teles_cs.c | |||
@@ -380,10 +380,7 @@ static int teles_suspend(struct pcmcia_device *p_dev) | |||
380 | dev_link_t *link = dev_to_instance(p_dev); | 380 | dev_link_t *link = dev_to_instance(p_dev); |
381 | local_info_t *dev = link->priv; | 381 | local_info_t *dev = link->priv; |
382 | 382 | ||
383 | link->state |= DEV_SUSPEND; | ||
384 | dev->busy = 1; | 383 | dev->busy = 1; |
385 | if (link->state & DEV_CONFIG) | ||
386 | pcmcia_release_configuration(link->handle); | ||
387 | 384 | ||
388 | return 0; | 385 | return 0; |
389 | } | 386 | } |
@@ -393,9 +390,6 @@ static int teles_resume(struct pcmcia_device *p_dev) | |||
393 | dev_link_t *link = dev_to_instance(p_dev); | 390 | dev_link_t *link = dev_to_instance(p_dev); |
394 | local_info_t *dev = link->priv; | 391 | local_info_t *dev = link->priv; |
395 | 392 | ||
396 | link->state &= ~DEV_SUSPEND; | ||
397 | if (link->state & DEV_CONFIG) | ||
398 | pcmcia_request_configuration(link->handle, &link->conf); | ||
399 | dev->busy = 0; | 393 | dev->busy = 0; |
400 | 394 | ||
401 | return 0; | 395 | return 0; |