Searched refs:srom_devs (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/char/ |
H A D | tile-srom.c | 76 static int srom_devs; /* Number of SROM partitions */ variable 366 * below will yield about log(srom_devs) additional allocations. srom_init() 392 srom_devs = i; srom_init() 395 if (srom_devs == 0) { srom_init() 402 result = register_chrdev_region(dev, srom_devs, "srom"); srom_init() 404 result = alloc_chrdev_region(&dev, 0, srom_devs, "srom"); srom_init() 414 result = cdev_add(&srom_cdev, dev, srom_devs); srom_init() 435 for (i = 0; i < srom_devs; i++) { srom_init() 444 for (i = 0; i < srom_devs; i++) srom_init() 452 unregister_chrdev_region(dev, srom_devs); srom_init() 462 for (i = 0; i < srom_devs; i++) srom_cleanup() 467 unregister_chrdev_region(MKDEV(srom_major, 0), srom_devs); srom_cleanup()
|
Completed in 44 milliseconds