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");
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);