m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'pci.c')
-rw-r--r--pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pci.c b/pci.c
index 3850633..ef6d5bf 100644
--- a/pci.c
+++ b/pci.c
@@ -11,7 +11,7 @@
int doom_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
int err = 0;
- ORFAIL(new_doomdev(), error_doomdev);
+ ORFAIL(new_doomdev(dev), error_doomdev);
error_doomdev:
return err;
@@ -19,7 +19,7 @@ error_doomdev:
void doom_remove (struct pci_dev *dev)
{
- destroy_doomdev();
+ destroy_doomdev(dev);
}
int doom_suspend (struct pci_dev *dev, pm_message_t state)