| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 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. |
|---|
| 5 | 3 | * |
|---|
| 6 | 4 | * Copyright (C) 2013 John Crispin <john@phrozen.org> |
|---|
| 7 | 5 | */ |
|---|
| .. | .. |
|---|
| 33 | 31 | .release = single_release, |
|---|
| 34 | 32 | }; |
|---|
| 35 | 33 | |
|---|
| 36 | | -static int bootrom_setup(void) |
|---|
| 34 | +static int __init bootrom_setup(void) |
|---|
| 37 | 35 | { |
|---|
| 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); |
|---|
| 45 | 37 | return 0; |
|---|
| 46 | 38 | } |
|---|
| 47 | 39 | |
|---|