mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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.edu Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Jan 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
50e9a6efb0
commit
f94845284a
@ -357,7 +357,7 @@ static const struct file_operations coda_psdev_fops = {
|
||||
.llseek = noop_llseek,
|
||||
};
|
||||
|
||||
static int init_coda_psdev(void)
|
||||
static int __init init_coda_psdev(void)
|
||||
{
|
||||
int i, err = 0;
|
||||
if (register_chrdev(CODA_PSDEV_MAJOR, "coda", &coda_psdev_fops)) {
|
||||
|
Loading…
Reference in New Issue
Block a user