Searched refs:cosa_major (Results 1 – 1 of 1) sorted by relevance
| /Linux-v5.15/drivers/net/wan/ |
| D | cosa.c | 162 static int cosa_major = 117; variable 344 if (cosa_major > 0) { in cosa_init() 345 if (register_chrdev(cosa_major, "cosa", &cosa_fops)) { in cosa_init() 346 pr_warn("unable to get major %d\n", cosa_major); in cosa_init() 351 cosa_major = register_chrdev(0, "cosa", &cosa_fops); in cosa_init() 352 if (!cosa_major) { in cosa_init() 364 unregister_chrdev(cosa_major, "cosa"); in cosa_init() 374 device_create(cosa_class, NULL, MKDEV(cosa_major, i), NULL, in cosa_init() 380 unregister_chrdev(cosa_major, "cosa"); in cosa_init() 392 device_destroy(cosa_class, MKDEV(cosa_major, i)); in cosa_exit() [all …]
|