Searched refs:riocm_cdev (Results 1 – 1 of 1) sorted by relevance
242 static struct channel_dev riocm_cdev; variable2069 cdev_init(&riocm_cdev.cdev, &riocm_cdev_fops); in riocm_cdev_add()2070 riocm_cdev.cdev.owner = THIS_MODULE; in riocm_cdev_add()2071 ret = cdev_add(&riocm_cdev.cdev, devno, 1); in riocm_cdev_add()2077 riocm_cdev.dev = device_create(&dev_class, NULL, devno, NULL, DEV_NAME); in riocm_cdev_add()2078 if (IS_ERR(riocm_cdev.dev)) { in riocm_cdev_add()2079 cdev_del(&riocm_cdev.cdev); in riocm_cdev_add()2080 return PTR_ERR(riocm_cdev.dev); in riocm_cdev_add()2366 device_unregister(riocm_cdev.dev); in riocm_exit()2367 cdev_del(&(riocm_cdev.cdev)); in riocm_exit()