| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI |
|---|
| 3 | 4 | * Hotplug and Dynamic Logical Partitioning on RPA platforms). |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (C) 2005 Nathan Lynch |
|---|
| 6 | 7 | * Copyright (C) 2005 IBM Corporation |
|---|
| 7 | | - * |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or |
|---|
| 10 | | - * modify it under the terms of the GNU General Public License version |
|---|
| 11 | | - * 2 as published by the Free Software Foundation. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 395 | 391 | return rv ? rv : count; |
|---|
| 396 | 392 | } |
|---|
| 397 | 393 | |
|---|
| 398 | | -static const struct file_operations ofdt_fops = { |
|---|
| 399 | | - .write = ofdt_write, |
|---|
| 400 | | - .llseek = noop_llseek, |
|---|
| 394 | +static const struct proc_ops ofdt_proc_ops = { |
|---|
| 395 | + .proc_write = ofdt_write, |
|---|
| 396 | + .proc_lseek = noop_llseek, |
|---|
| 401 | 397 | }; |
|---|
| 402 | 398 | |
|---|
| 403 | 399 | /* create /proc/powerpc/ofdt write-only by root */ |
|---|
| .. | .. |
|---|
| 405 | 401 | { |
|---|
| 406 | 402 | struct proc_dir_entry *ent; |
|---|
| 407 | 403 | |
|---|
| 408 | | - ent = proc_create("powerpc/ofdt", 0200, NULL, &ofdt_fops); |
|---|
| 404 | + ent = proc_create("powerpc/ofdt", 0200, NULL, &ofdt_proc_ops); |
|---|
| 409 | 405 | if (ent) |
|---|
| 410 | 406 | proc_set_size(ent, 0); |
|---|
| 411 | 407 | |
|---|