diff options
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/main.c | 1 | ||||
-rw-r--r-- | drivers/ssb/pcmcia.c | 15 | ||||
-rw-r--r-- | drivers/ssb/scan.c | 1 |
3 files changed, 2 insertions, 15 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 7cee7f4eb60b..7892ac163522 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/mmc/sdio_func.h> | 20 | #include <linux/mmc/sdio_func.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | 22 | ||
23 | #include <pcmcia/cs_types.h> | ||
24 | #include <pcmcia/cs.h> | 23 | #include <pcmcia/cs.h> |
25 | #include <pcmcia/cistpl.h> | 24 | #include <pcmcia/cistpl.h> |
26 | #include <pcmcia/ds.h> | 25 | #include <pcmcia/ds.h> |
diff --git a/drivers/ssb/pcmcia.c b/drivers/ssb/pcmcia.c index e72f4046a5e0..526682d68de8 100644 --- a/drivers/ssb/pcmcia.c +++ b/drivers/ssb/pcmcia.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/etherdevice.h> | 14 | #include <linux/etherdevice.h> |
15 | 15 | ||
16 | #include <pcmcia/cs_types.h> | ||
17 | #include <pcmcia/cs.h> | 16 | #include <pcmcia/cs.h> |
18 | #include <pcmcia/cistpl.h> | 17 | #include <pcmcia/cistpl.h> |
19 | #include <pcmcia/ciscode.h> | 18 | #include <pcmcia/ciscode.h> |
@@ -72,14 +71,9 @@ | |||
72 | /* Write to a PCMCIA configuration register. */ | 71 | /* Write to a PCMCIA configuration register. */ |
73 | static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) | 72 | static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) |
74 | { | 73 | { |
75 | conf_reg_t reg; | ||
76 | int res; | 74 | int res; |
77 | 75 | ||
78 | memset(®, 0, sizeof(reg)); | 76 | res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value); |
79 | reg.Offset = offset; | ||
80 | reg.Action = CS_WRITE; | ||
81 | reg.Value = value; | ||
82 | res = pcmcia_access_configuration_register(bus->host_pcmcia, ®); | ||
83 | if (unlikely(res != 0)) | 77 | if (unlikely(res != 0)) |
84 | return -EBUSY; | 78 | return -EBUSY; |
85 | 79 | ||
@@ -89,16 +83,11 @@ static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) | |||
89 | /* Read from a PCMCIA configuration register. */ | 83 | /* Read from a PCMCIA configuration register. */ |
90 | static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value) | 84 | static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value) |
91 | { | 85 | { |
92 | conf_reg_t reg; | ||
93 | int res; | 86 | int res; |
94 | 87 | ||
95 | memset(®, 0, sizeof(reg)); | 88 | res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value); |
96 | reg.Offset = offset; | ||
97 | reg.Action = CS_READ; | ||
98 | res = pcmcia_access_configuration_register(bus->host_pcmcia, ®); | ||
99 | if (unlikely(res != 0)) | 89 | if (unlikely(res != 0)) |
100 | return -EBUSY; | 90 | return -EBUSY; |
101 | *value = reg.Value; | ||
102 | 91 | ||
103 | return 0; | 92 | return 0; |
104 | } | 93 | } |
diff --git a/drivers/ssb/scan.c b/drivers/ssb/scan.c index 0d6c0280eb34..9738cad4ba13 100644 --- a/drivers/ssb/scan.c +++ b/drivers/ssb/scan.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/pci.h> | 17 | #include <linux/pci.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | 19 | ||
20 | #include <pcmcia/cs_types.h> | ||
21 | #include <pcmcia/cs.h> | 20 | #include <pcmcia/cs.h> |
22 | #include <pcmcia/cistpl.h> | 21 | #include <pcmcia/cistpl.h> |
23 | #include <pcmcia/ds.h> | 22 | #include <pcmcia/ds.h> |