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 = ...@@ -465,15 +465,15 @@ static struct file_operations shmiq_fops =
void void
shmiq_init (void) shmiq_init (void)
{ {
static char names[3] = { "shmiq", "qcntl0", "qcntl1" };
int i;
printk ("SHMIQ setup\n"); printk ("SHMIQ setup\n");
register_chrdev(SHMIQ_MAJOR, "shmiq", &shmiq_fops); register_chrdev(SHMIQ_MAJOR, "shmiq", &shmiq_fops);
devfs_register (NULL, "shmiq", DEVFS_FL_DEFAULT, for (i = 0; i < 3; i++) {
SHMIQ_MAJOR, 0, S_IFCHR | S_IRUSR | S_IWUSR, devfs_register (NULL, names[i], DEVFS_FL_DEFAULT,
SHMIQ_MAJOR, i, S_IFCHR | S_IRUSR | S_IWUSR,
&shmiq_fops, NULL); &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); 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