aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 16:57:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 16:57:13 -0500
commit7ed214ac2095f561a94335ca672b6c42a1ea40ff (patch)
treeda41901bff1d0d8d61170bf362384fdc61deb3ab /drivers/pcmcia
parent21eaab6d19ed43e82ed39c8deb7f192134fb4a0e (diff)
parent29e5507ae4ab34397f538f06b7070c81a4e4a2bf (diff)
Merge tag 'char-misc-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver patches from Greg Kroah-Hartman: "Here's the big char/misc driver patches for 3.9-rc1. Nothing major here, just lots of different driver updates (mei, hyperv, ipack, extcon, vmci, etc.). All of these have been in the linux-next tree for a while." * tag 'char-misc-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (209 commits) w1: w1_therm: Add force-pullup option for "broken" sensors w1: ds2482: Added 1-Wire pull-up support to the driver vme: add missing put_device() after device_register() fails extcon: max8997: Use workqueue to check cable state after completing boot of platform extcon: max8997: Set default UART/USB path on probe extcon: max8997: Consolidate duplicate code for checking ADC/CHG cable type extcon: max8997: Set default of ADC debounce time during initialization extcon: max8997: Remove duplicate code related to set H/W line path extcon: max8997: Move defined constant to header file extcon: max77693: Make max77693_extcon_cable static extcon: max8997: Remove unreachable code extcon: max8997: Make max8997_extcon_cable static extcon: max77693: Remove unnecessary goto statement to improve readability extcon: max77693: Convert to devm_input_allocate_device() extcon: gpio: Rename filename of extcon-gpio.c according to kernel naming style CREDITS: update email and address of Harald Hoyer extcon: arizona: Use MICDET for final microphone identification extcon: arizona: Always take the first HPDET reading as the final one extcon: arizona: Clear _trig_sts bits after jack detection extcon: arizona: Don't HPDET magic when headphones are enabled ...
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/i82092.c8
-rw-r--r--drivers/pcmcia/vrc4171_card.c1
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c
index 3578e1ca97a0..519c4d6003a6 100644
--- a/drivers/pcmcia/i82092.c
+++ b/drivers/pcmcia/i82092.c
@@ -133,8 +133,6 @@ static int i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *i
133 goto err_out_free_res; 133 goto err_out_free_res;
134 } 134 }
135 135
136 pci_set_drvdata(dev, &sockets[i].socket);
137
138 for (i = 0; i<socket_count; i++) { 136 for (i = 0; i<socket_count; i++) {
139 sockets[i].socket.dev.parent = &dev->dev; 137 sockets[i].socket.dev.parent = &dev->dev;
140 sockets[i].socket.ops = &i82092aa_operations; 138 sockets[i].socket.ops = &i82092aa_operations;
@@ -164,14 +162,14 @@ err_out_disable:
164 162
165static void i82092aa_pci_remove(struct pci_dev *dev) 163static void i82092aa_pci_remove(struct pci_dev *dev)
166{ 164{
167 struct pcmcia_socket *socket = pci_get_drvdata(dev); 165 int i;
168 166
169 enter("i82092aa_pci_remove"); 167 enter("i82092aa_pci_remove");
170 168
171 free_irq(dev->irq, i82092aa_interrupt); 169 free_irq(dev->irq, i82092aa_interrupt);
172 170
173 if (socket) 171 for (i = 0; i < socket_count; i++)
174 pcmcia_unregister_socket(socket); 172 pcmcia_unregister_socket(&sockets[i].socket);
175 173
176 leave("i82092aa_pci_remove"); 174 leave("i82092aa_pci_remove");
177} 175}
diff --git a/drivers/pcmcia/vrc4171_card.c b/drivers/pcmcia/vrc4171_card.c
index 75806be344e5..d98a08612492 100644
--- a/drivers/pcmcia/vrc4171_card.c
+++ b/drivers/pcmcia/vrc4171_card.c
@@ -246,6 +246,7 @@ static int pccard_init(struct pcmcia_socket *sock)
246 socket = &vrc4171_sockets[slot]; 246 socket = &vrc4171_sockets[slot];
247 socket->csc_irq = search_nonuse_irq(); 247 socket->csc_irq = search_nonuse_irq();
248 socket->io_irq = search_nonuse_irq(); 248 socket->io_irq = search_nonuse_irq();
249 spin_lock_init(&socket->lock);
249 250
250 return 0; 251 return 0;
251} 252}