diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/um/drivers/harddog_kern.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/arch/um/drivers/harddog_kern.c b/arch/um/drivers/harddog_kern.c index 2d0266d0254d..3282787bbcfb 100644 --- a/arch/um/drivers/harddog_kern.c +++ b/arch/um/drivers/harddog_kern.c | |||
| @@ -175,27 +175,4 @@ static struct miscdevice harddog_miscdev = { | |||
| 175 | .name = "watchdog", | 175 | .name = "watchdog", |
| 176 | .fops = &harddog_fops, | 176 | .fops = &harddog_fops, |
| 177 | }; | 177 | }; |
| 178 | 178 | module_misc_device(harddog_miscdev); | |
| 179 | static char banner[] __initdata = KERN_INFO "UML Watchdog Timer\n"; | ||
| 180 | |||
| 181 | static int __init harddog_init(void) | ||
| 182 | { | ||
| 183 | int ret; | ||
| 184 | |||
| 185 | ret = misc_register(&harddog_miscdev); | ||
| 186 | |||
| 187 | if (ret) | ||
| 188 | return ret; | ||
| 189 | |||
| 190 | printk(banner); | ||
| 191 | |||
| 192 | return 0; | ||
| 193 | } | ||
| 194 | |||
| 195 | static void __exit harddog_exit(void) | ||
| 196 | { | ||
| 197 | misc_deregister(&harddog_miscdev); | ||
| 198 | } | ||
| 199 | |||
| 200 | module_init(harddog_init); | ||
| 201 | module_exit(harddog_exit); | ||
