Lines Matching refs:misc_device
1288 struct miscdevice *misc_device; in bcm_vk_probe() local
1413 misc_device = &vk->miscdev; in bcm_vk_probe()
1414 misc_device->minor = MISC_DYNAMIC_MINOR; in bcm_vk_probe()
1415 misc_device->name = kstrdup(name, GFP_KERNEL); in bcm_vk_probe()
1416 if (!misc_device->name) { in bcm_vk_probe()
1420 misc_device->fops = &bcm_vk_fops, in bcm_vk_probe()
1422 err = misc_register(misc_device); in bcm_vk_probe()
1496 misc_deregister(misc_device); in bcm_vk_probe()
1499 kfree(misc_device->name); in bcm_vk_probe()
1500 misc_device->name = NULL; in bcm_vk_probe()
1548 struct miscdevice *misc_device = &vk->miscdev; in bcm_vk_remove() local
1573 if (misc_device->name) { in bcm_vk_remove()
1574 misc_deregister(misc_device); in bcm_vk_remove()
1575 kfree(misc_device->name); in bcm_vk_remove()