Searched refs:riocm_cdev (Results 1 – 1 of 1) sorted by relevance
240 static struct channel_dev riocm_cdev; variable2067 cdev_init(&riocm_cdev.cdev, &riocm_cdev_fops); in riocm_cdev_add()2068 riocm_cdev.cdev.owner = THIS_MODULE; in riocm_cdev_add()2069 ret = cdev_add(&riocm_cdev.cdev, devno, 1); in riocm_cdev_add()2075 riocm_cdev.dev = device_create(dev_class, NULL, devno, NULL, DEV_NAME); in riocm_cdev_add()2076 if (IS_ERR(riocm_cdev.dev)) { in riocm_cdev_add()2077 cdev_del(&riocm_cdev.cdev); in riocm_cdev_add()2078 return PTR_ERR(riocm_cdev.dev); in riocm_cdev_add()2364 device_unregister(riocm_cdev.dev); in riocm_exit()2365 cdev_del(&(riocm_cdev.cdev)); in riocm_exit()