forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/ralink/bootrom.c
....@@ -1,7 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify it
3
- * under the terms of the GNU General Public License version 2 as published
4
- * by the Free Software Foundation.
53 *
64 * Copyright (C) 2013 John Crispin <john@phrozen.org>
75 */
....@@ -33,15 +31,9 @@
3331 .release = single_release,
3432 };
3533
36
-static int bootrom_setup(void)
34
+static int __init bootrom_setup(void)
3735 {
38
- if (!debugfs_create_file("bootrom", 0444,
39
- NULL, NULL, &bootrom_file_ops)) {
40
- pr_err("Failed to create bootrom debugfs file\n");
41
-
42
- return -EINVAL;
43
- }
44
-
36
+ debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops);
4537 return 0;
4638 }
4739