patch-2.4.15 linux/drivers/char/joystick/pcigame.c
Next file: linux/drivers/char/pc_keyb.c
Previous file: linux/drivers/char/joystick/emu10k1-gp.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Nov 9 13:41:42 2001
- Orig file:
v2.4.14/linux/drivers/char/joystick/pcigame.c
- Orig date:
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/char/joystick/pcigame.c linux/drivers/char/joystick/pcigame.c
@@ -133,7 +133,7 @@
pcigame->data = pcigame_data + id->driver_data;
pcigame->dev = dev;
- dev->driver_data = pcigame;
+ pci_set_drvdata(dev, pcigame);
pcigame->gameport.private = pcigame;
pcigame->gameport.fuzz = 64;
@@ -163,7 +163,7 @@
static void __devexit pcigame_remove(struct pci_dev *dev)
{
- struct pcigame *pcigame = dev->driver_data;
+ struct pcigame *pcigame = pci_get_drvdata(dev);
gameport_unregister_port(&pcigame->gameport);
iounmap(pcigame->base);
kfree(pcigame);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)