4 #include <linux/slab.h>
5 #include <linux/types.h>
12 static inline void class_destroy(struct class *class)
17 static inline struct class * __must_check class_create(struct module *owner,
20 return kzalloc(sizeof(struct class), GFP_KERNEL);
26 static inline void device_unregister(struct device *dev)
31 static inline void device_destroy(struct class *cls, dev_t devt) {}
33 static inline struct device *device_create(struct class *cls, struct device *parent,
34 dev_t devt, void *drvdata,
37 return kzalloc(sizeof(struct device), GFP_KERNEL);
40 #endif /* _DEVICE_H_ */