compile fix for gcc 2.95 from al14@inf.tu-dresden.de (Andreas Leuner)
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 Feb 2005 00:22:02 +0000 (00:22 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 28 Feb 2005 00:22:02 +0000 (00:22 +0000)
comedi/comedi_fops.c

index 2d889bada5adc8cff72760199cb973a58cd56591..a49361a38048f7be288c79d5c9c4fba2ddb33a85 100644 (file)
@@ -1810,8 +1810,8 @@ static void __exit comedi_cleanup(void)
                printk("comedi: module in use -- remove delayed\n");
 
        for(i=0;i<COMEDI_NDEVICES;i++){
-               class_simple_device_remove(MKDEV(COMEDI_MAJOR, i));
                char name[20];
+               class_simple_device_remove(MKDEV(COMEDI_MAJOR, i));
                sprintf(name, "comedi%d", i);
                devfs_unregister(devfs_find_handle(NULL, name,
                        COMEDI_MAJOR, i, DEVFS_SPECIAL_CHR, 0));