X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fisdn%2Fhardware%2Feicon%2Fdivasmain.c;fp=drivers%2Fisdn%2Fhardware%2Feicon%2Fdivasmain.c;h=c9b26e86d183090555540d582eca4631c03d05d8;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=b7dadba13e828c325a358e0630cc1ff24f8c4e77;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c index b7dadba13..c9b26e86d 100644 --- a/drivers/isdn/hardware/eicon/divasmain.c +++ b/drivers/isdn/hardware/eicon/divasmain.c @@ -9,10 +9,12 @@ * of the GNU General Public License, incorporated herein by reference. */ +#include #include #include #include #include +#include #include #include #include @@ -486,7 +488,7 @@ void __inline__ outpp(void __iomem *addr, word p) int diva_os_register_irq(void *context, byte irq, const char *name) { int result = request_irq(irq, diva_os_irq_wrapper, - IRQF_DISABLED | IRQF_SHARED, name, context); + SA_INTERRUPT | SA_SHIRQ, name, context); return (result); } @@ -676,6 +678,7 @@ static struct file_operations divas_fops = { static void divas_unregister_chrdev(void) { + devfs_remove(DEVNAME); unregister_chrdev(major, DEVNAME); } @@ -687,6 +690,7 @@ static int DIVA_INIT_FUNCTION divas_register_chrdev(void) DRIVERLNAME); return (0); } + devfs_mk_cdev(MKDEV(major, 0), S_IFCHR|S_IRUSR|S_IWUSR, DEVNAME); return (1); }