Commit 5ebe2675 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] miropcm20-rds.c compile fixes

Patch from Adrian Bunk <bunk@fs.tum.de>

It would be nice if everyone would try to compile the patched files
before submitting patches...
parent c96c506f
...@@ -113,7 +113,7 @@ static struct file_operations rds_fops = { ...@@ -113,7 +113,7 @@ static struct file_operations rds_fops = {
static struct miscdevice rds_miscdev = { static struct miscdevice rds_miscdev = {
.minor = MISC_DYNAMIC_MINOR, .minor = MISC_DYNAMIC_MINOR,
.name = "radiotext" .name = "radiotext",
.fops = &rds_fops, .fops = &rds_fops,
}; };
...@@ -128,7 +128,7 @@ static int __init miropcm20_rds_init(void) ...@@ -128,7 +128,7 @@ static int __init miropcm20_rds_init(void)
error = devfs_mk_symlink(NULL, "v4l/rds/radiotext", 0, error = devfs_mk_symlink(NULL, "v4l/rds/radiotext", 0,
"../misc/radiotext", NULL, NULL); "../misc/radiotext", NULL, NULL);
if (error) if (error)
misc_deregister(&rds_miscdev) misc_deregister(&rds_miscdev);
return error; return error;
} }
...@@ -136,7 +136,7 @@ static int __init miropcm20_rds_init(void) ...@@ -136,7 +136,7 @@ static int __init miropcm20_rds_init(void)
static void __exit miropcm20_rds_cleanup(void) static void __exit miropcm20_rds_cleanup(void)
{ {
devfs_remove("v4l/rds/radiotext"); devfs_remove("v4l/rds/radiotext");
misc_deregister(&rds_miscdev) misc_deregister(&rds_miscdev);
} }
module_init(miropcm20_rds_init); module_init(miropcm20_rds_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