diff --git a/drivers/dahdi/dahdi-sysfs-chan.c b/drivers/dahdi/dahdi-sysfs-chan.c index 125a355..a91e6ed 100644 --- a/drivers/dahdi/dahdi-sysfs-chan.c +++ b/drivers/dahdi/dahdi-sysfs-chan.c @@ -33,9 +33,11 @@ /* shortcuts, for code readability */ #define MAKE_DAHDI_DEV(num, name) \ - CLASS_DEV_CREATE(dahdi_class, MKDEV(DAHDI_MAJOR, num), NULL, name) + device_create(dahdi_class, NULL, MKDEV(DAHDI_MAJOR, num), \ + NULL, "%s", name) + #define DEL_DAHDI_DEV(num) \ - CLASS_DEV_DESTROY(dahdi_class, MKDEV(DAHDI_MAJOR, num)) + device_destroy(dahdi_class, MKDEV(DAHDI_MAJOR, num)) static struct class *dahdi_class; diff --git a/drivers/dahdi/dahdi-sysfs.h b/drivers/dahdi/dahdi-sysfs.h index a6f2479..d8bdb42 100644 --- a/drivers/dahdi/dahdi-sysfs.h +++ b/drivers/dahdi/dahdi-sysfs.h @@ -21,14 +21,6 @@ #define DRIVER_ATTR_READER(name, drv, buf) \ ssize_t name(struct device_driver *drv, char * buf) -/* Device file creation macros */ -#define CLASS_DEV_CREATE(class, devt, device, name) \ - device_create(class, device, devt, NULL, "%s", name) - -/* Device file destruction macros */ -#define CLASS_DEV_DESTROY(class, devt) \ - device_destroy(class, devt) - /* Global */ int __init dahdi_sysfs_chan_init(const struct file_operations *fops); void dahdi_sysfs_chan_exit(void);