Home
last modified time | relevance | path

Searched refs:cosa_major (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/net/wan/
Dcosa.c179 static int cosa_major = 117; variable
364 if (cosa_major > 0) { in cosa_init()
365 if (register_chrdev(cosa_major, "cosa", &cosa_fops)) { in cosa_init()
366 pr_warn("unable to get major %d\n", cosa_major); in cosa_init()
371 if (!(cosa_major=register_chrdev(0, "cosa", &cosa_fops))) { in cosa_init()
383 unregister_chrdev(cosa_major, "cosa"); in cosa_init()
393 device_create(cosa_class, NULL, MKDEV(cosa_major, i), NULL, in cosa_init()
399 unregister_chrdev(cosa_major, "cosa"); in cosa_init()
411 device_destroy(cosa_class, MKDEV(cosa_major, i)); in cosa_exit()
428 unregister_chrdev(cosa_major, "cosa"); in cosa_exit()