diff options
author | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-03 20:06:14 +0200 |
---|---|---|
committer | Marcin Chrzanowski <marcin.j.chrzanowski@gmail.com> | 2018-05-03 20:06:14 +0200 |
commit | 77c090b85d2dc085dce3712d4a5faf8452531d58 (patch) | |
tree | 8943ec00fd7871df6fc12fad61dd31e2de13adc2 /pci.c | |
parent | 391f8bee7ef5a2e92d24d73f0072915b7cb12b6b (diff) |
Store and use minor number
Diffstat (limited to 'pci.c')
-rw-r--r-- | pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |