Commit eee362da authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] shmiq cleanup

	switched to explicit devfs_register()/devfs_remove()
parent d218818f
......@@ -465,15 +465,15 @@ static struct file_operations shmiq_fops =
void
shmiq_init (void)
{
static char names[3] = { "shmiq", "qcntl0", "qcntl1" };
int i;
printk ("SHMIQ setup\n");
register_chrdev(SHMIQ_MAJOR, "shmiq", &shmiq_fops);
devfs_register (NULL, "shmiq", DEVFS_FL_DEFAULT,
SHMIQ_MAJOR, 0, S_IFCHR | S_IRUSR | S_IWUSR,
for (i = 0; i < 3; i++) {
devfs_register (NULL, names[i], DEVFS_FL_DEFAULT,
SHMIQ_MAJOR, i, S_IFCHR | S_IRUSR | S_IWUSR,
&shmiq_fops, NULL);
devfs_register_series (NULL, "qcntl%u", 2, DEVFS_FL_DEFAULT,
SHMIQ_MAJOR, 1,
S_IFCHR | S_IRUSR | S_IWUSR,
&shmiq_fops, NULL);
}
}
EXPORT_SYMBOL(shmiq_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment