22 #include <linux/kernel.h>
24 #include <linux/device.h>
26 #include <linux/kdev_t.h>
30 #include <linux/export.h>
32 static struct class *dca_class;
33 static struct idr dca_idr;
42 "requester%d", req_count++);
61 spin_lock(&dca_idr_lock);
63 spin_unlock(&dca_idr_lock);
75 spin_lock(&dca_idr_lock);
77 spin_unlock(&dca_idr_lock);
88 spin_lock(&dca_idr_lock);
90 spin_unlock(&dca_idr_lock);
99 if (IS_ERR(dca_class)) {
101 return PTR_ERR(dca_class);