]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/open.c
LinCAN can be compiled in mode with RT-Linux chip worker threads now.
[lincan.git] / lincan / src / open.c
index 38ee4d4c8d91ba4b16044379bf024b8ba020f1e8..015b52107130b5c691f5a874d3be3720dc79ebd3 100644 (file)
@@ -33,7 +33,7 @@ int can_open(struct inode *inode, struct file *file)
 
        atomic_inc(&obj->obj_used);
        DEBUGMSG("Device %d opened %d times.\n", MINOR_NR, atomic_read(&obj->obj_used));
-       obj->flags |= OBJ_OPENED;
+       can_msgobj_set_fl(obj,OPENED);
 
        if (chip->flags & CHIP_CONFIGURED) 
                DEBUGMSG("Device is already configured.\n");
@@ -46,8 +46,6 @@ int can_open(struct inode *inode, struct file *file)
                if (chip->chipspecops->pre_read_config(chip,obj)<0)
                        CANMSG("Error initializing chip for receiving\n");
 
-               /* chip->flags |= OBJ_BUFFERS_ALLOCATED; */
-               
        } /* End of chip configuration */
 
        canuser = (struct canuser_t *)kmalloc(sizeof(struct canuser_t), GFP_KERNEL);