| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen IBM Corporation |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * You should have received a copy of the GNU General Public License |
|---|
| 15 | | - * along with this program; if not, write to the Free Software |
|---|
| 16 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 17 | 4 | */ |
|---|
| 18 | 5 | |
|---|
| 19 | 6 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 52 | 39 | return 0; |
|---|
| 53 | 40 | } |
|---|
| 54 | 41 | |
|---|
| 55 | | -static const struct file_operations page_map_fops = { |
|---|
| 56 | | - .llseek = page_map_seek, |
|---|
| 57 | | - .read = page_map_read, |
|---|
| 58 | | - .mmap = page_map_mmap |
|---|
| 42 | +static const struct proc_ops page_map_proc_ops = { |
|---|
| 43 | + .proc_lseek = page_map_seek, |
|---|
| 44 | + .proc_read = page_map_read, |
|---|
| 45 | + .proc_mmap = page_map_mmap, |
|---|
| 59 | 46 | }; |
|---|
| 60 | 47 | |
|---|
| 61 | 48 | |
|---|
| .. | .. |
|---|
| 64 | 51 | struct proc_dir_entry *pde; |
|---|
| 65 | 52 | |
|---|
| 66 | 53 | pde = proc_create_data("powerpc/systemcfg", S_IFREG | 0444, NULL, |
|---|
| 67 | | - &page_map_fops, vdso_data); |
|---|
| 54 | + &page_map_proc_ops, vdso_data); |
|---|
| 68 | 55 | if (!pde) |
|---|
| 69 | 56 | return 1; |
|---|
| 70 | 57 | proc_set_size(pde, PAGE_SIZE); |
|---|