Commit f9484528 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds

coda: add __init to init_coda_psdev()

init_coda_psdev() was only called by __init function.

Link: http://lkml.kernel.org/r/a12a5a135fa6b0ea997e1a0af4be0a235c463a24.1558117389.git.jaharkes@cs.cmu.eduSigned-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJan Harkes <jaharkes@cs.cmu.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: Sam Protsenko <semen.protsenko@linaro.org>
Cc: Yann Droneaud <ydroneaud@opteya.com>
Cc: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 50e9a6ef
...@@ -357,7 +357,7 @@ static const struct file_operations coda_psdev_fops = { ...@@ -357,7 +357,7 @@ static const struct file_operations coda_psdev_fops = {
.llseek = noop_llseek, .llseek = noop_llseek,
}; };
static int init_coda_psdev(void) static int __init init_coda_psdev(void)
{ {
int i, err = 0; int i, err = 0;
if (register_chrdev(CODA_PSDEV_MAJOR, "coda", &coda_psdev_fops)) { if (register_chrdev(CODA_PSDEV_MAJOR, "coda", &coda_psdev_fops)) {
......
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