diff options
Diffstat (limited to 'arch/mips/ralink/bootrom.c')
-rw-r--r-- | arch/mips/ralink/bootrom.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/mips/ralink/bootrom.c b/arch/mips/ralink/bootrom.c index 88bcce59beeb..8c8cc0a81ed8 100644 --- a/arch/mips/ralink/bootrom.c +++ b/arch/mips/ralink/bootrom.c @@ -18,22 +18,11 @@ static int bootrom_show(struct seq_file *s, void *unused) return 0; } +DEFINE_SHOW_ATTRIBUTE(bootrom); -static int bootrom_open(struct inode *inode, struct file *file) +static int __init bootrom_setup(void) { - return single_open(file, bootrom_show, NULL); -} - -static const struct file_operations bootrom_file_ops = { - .open = bootrom_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, -}; - -static int bootrom_setup(void) -{ - debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops); + debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_fops); return 0; } |