m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pci.c
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-03 20:06:14 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-03 20:06:14 +0200
commit77c090b85d2dc085dce3712d4a5faf8452531d58 (patch)
tree8943ec00fd7871df6fc12fad61dd31e2de13adc2 /pci.c
parent391f8bee7ef5a2e92d24d73f0072915b7cb12b6b (diff)
Store and use minor number
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)