X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fisdn%2Fhardware%2Feicon%2Fdivamnt.c;fp=drivers%2Fisdn%2Fhardware%2Feicon%2Fdivamnt.c;h=6146f7633be5d421b9c113836c22654bd8cbb1b3;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=77155d9f399bc1d1b46c2323ac4f6bedb48b30db;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/isdn/hardware/eicon/divamnt.c b/drivers/isdn/hardware/eicon/divamnt.c index 77155d9f3..6146f7633 100644 --- a/drivers/isdn/hardware/eicon/divamnt.c +++ b/drivers/isdn/hardware/eicon/divamnt.c @@ -10,12 +10,14 @@ * of the GNU General Public License, incorporated herein by reference. */ +#include #include #include #include #include #include #include +#include #include #include "platform.h" @@ -176,6 +178,7 @@ static struct file_operations divas_maint_fops = { static void divas_maint_unregister_chrdev(void) { + devfs_remove(DEVNAME); unregister_chrdev(major, DEVNAME); } @@ -187,6 +190,7 @@ static int DIVA_INIT_FUNCTION divas_maint_register_chrdev(void) DRIVERLNAME); return (0); } + devfs_mk_cdev(MKDEV(major, 0), S_IFCHR|S_IRUSR|S_IWUSR, DEVNAME); return (1); }