diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2009-11-03 04:27:34 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2009-11-28 12:03:10 -0500 |
commit | dd2e5a156525f11754d9b1e0583f6bb49c253d62 (patch) | |
tree | f64b680eec9c4ca7da4fe635031a94a3bbf5ebee /drivers/char/pcmcia | |
parent | 6838b03fc6564ea07d0cd87ea6e198d90ab1fc3e (diff) |
pcmcia: remove deprecated handle_to_dev() macro
Update remaining users and remove deprecated handle_to_dev() macro
CC: Harald Welte <laforge@gnumonks.org>
CC: netdev@vger.kernel.org
CC: linux-wireless@vger.kernel.org
CC: linux-serial@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/cm4000_cs.c | 2 | ||||
-rw-r--r-- | drivers/char/pcmcia/cm4040_cs.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index 1611c4fe97fc..2db4c0a29b05 100644 --- a/drivers/char/pcmcia/cm4000_cs.c +++ b/drivers/char/pcmcia/cm4000_cs.c | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | /* #define ATR_CSUM */ | 46 | /* #define ATR_CSUM */ |
47 | 47 | ||
48 | #define reader_to_dev(x) (&handle_to_dev(x->p_dev)) | 48 | #define reader_to_dev(x) (&x->p_dev->dev) |
49 | 49 | ||
50 | /* n (debug level) is ignored */ | 50 | /* n (debug level) is ignored */ |
51 | /* additional debug output may be enabled by re-compiling with | 51 | /* additional debug output may be enabled by re-compiling with |
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c index 38790db561a1..a6a70e476bea 100644 --- a/drivers/char/pcmcia/cm4040_cs.c +++ b/drivers/char/pcmcia/cm4040_cs.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include "cm4040_cs.h" | 39 | #include "cm4040_cs.h" |
40 | 40 | ||
41 | 41 | ||
42 | #define reader_to_dev(x) (&handle_to_dev(x->p_dev)) | 42 | #define reader_to_dev(x) (&x->p_dev->dev) |
43 | 43 | ||
44 | /* n (debug level) is ignored */ | 44 | /* n (debug level) is ignored */ |
45 | /* additional debug output may be enabled by re-compiling with | 45 | /* additional debug output may be enabled by re-compiling with |
@@ -539,7 +539,7 @@ static int cm4040_config_check(struct pcmcia_device *p_dev, | |||
539 | p_dev->io.IOAddrLines = cfg->io.flags & CISTPL_IO_LINES_MASK; | 539 | p_dev->io.IOAddrLines = cfg->io.flags & CISTPL_IO_LINES_MASK; |
540 | 540 | ||
541 | rc = pcmcia_request_io(p_dev, &p_dev->io); | 541 | rc = pcmcia_request_io(p_dev, &p_dev->io); |
542 | dev_printk(KERN_INFO, &handle_to_dev(p_dev), | 542 | dev_printk(KERN_INFO, &p_dev->dev, |
543 | "pcmcia_request_io returned 0x%x\n", rc); | 543 | "pcmcia_request_io returned 0x%x\n", rc); |
544 | return rc; | 544 | return rc; |
545 | } | 545 | } |
@@ -561,7 +561,7 @@ static int reader_config(struct pcmcia_device *link, int devno) | |||
561 | 561 | ||
562 | fail_rc = pcmcia_request_configuration(link, &link->conf); | 562 | fail_rc = pcmcia_request_configuration(link, &link->conf); |
563 | if (fail_rc != 0) { | 563 | if (fail_rc != 0) { |
564 | dev_printk(KERN_INFO, &handle_to_dev(link), | 564 | dev_printk(KERN_INFO, &link->dev, |
565 | "pcmcia_request_configuration failed 0x%x\n", | 565 | "pcmcia_request_configuration failed 0x%x\n", |
566 | fail_rc); | 566 | fail_rc); |
567 | goto cs_release; | 567 | goto cs_release; |