hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/platforms/pseries/reconfig.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI
34 * Hotplug and Dynamic Logical Partitioning on RPA platforms).
45 *
56 * Copyright (C) 2005 Nathan Lynch
67 * 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.
128 */
139
1410 #include <linux/kernel.h>
....@@ -395,9 +391,9 @@
395391 return rv ? rv : count;
396392 }
397393
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,
401397 };
402398
403399 /* create /proc/powerpc/ofdt write-only by root */
....@@ -405,7 +401,7 @@
405401 {
406402 struct proc_dir_entry *ent;
407403
408
- ent = proc_create("powerpc/ofdt", 0200, NULL, &ofdt_fops);
404
+ ent = proc_create("powerpc/ofdt", 0200, NULL, &ofdt_proc_ops);
409405 if (ent)
410406 proc_set_size(ent, 0);
411407