m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pci.h
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-04 17:47:41 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2018-05-04 17:47:41 +0200
commit92ea475ae6afe103cd5b2e68fdc84f02e3aa1657 (patch)
tree3e92c2d9ba0ba1a0f6e226bbd480f4c4656b294b /pci.h
parent77c090b85d2dc085dce3712d4a5faf8452531d58 (diff)
Fix cdev creation and destruction
Diffstat (limited to 'pci.h')
-rw-r--r--pci.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pci.h b/pci.h
index 04c48f2..9e8d07f 100644
--- a/pci.h
+++ b/pci.h
@@ -1,8 +1,11 @@
#ifndef PCI_H
#define PCI_H
+#include <linux/device.h>
+
struct doom_data {
- int minor;
+ struct cdev *cdev;
+ struct device *device;
};
int pci_init(void);