Searched refs:riocm_cdev (Results 1 – 1 of 1) sorted by relevance
249 static struct channel_dev riocm_cdev; variable2074 cdev_init(&riocm_cdev.cdev, &riocm_cdev_fops); in riocm_cdev_add()2075 riocm_cdev.cdev.owner = THIS_MODULE; in riocm_cdev_add()2076 ret = cdev_add(&riocm_cdev.cdev, devno, 1); in riocm_cdev_add()2082 riocm_cdev.dev = device_create(dev_class, NULL, devno, NULL, DEV_NAME); in riocm_cdev_add()2083 if (IS_ERR(riocm_cdev.dev)) { in riocm_cdev_add()2084 cdev_del(&riocm_cdev.cdev); in riocm_cdev_add()2085 return PTR_ERR(riocm_cdev.dev); in riocm_cdev_add()2368 device_unregister(riocm_cdev.dev); in riocm_exit()2369 cdev_del(&(riocm_cdev.cdev)); in riocm_exit()