forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/arch/sh/mm/alignment.c
....@@ -152,13 +152,12 @@
152152 return count;
153153 }
154154
155
-static const struct file_operations alignment_proc_fops = {
156
- .owner = THIS_MODULE,
157
- .open = alignment_proc_open,
158
- .read = seq_read,
159
- .llseek = seq_lseek,
160
- .release = single_release,
161
- .write = alignment_proc_write,
155
+static const struct proc_ops alignment_proc_ops = {
156
+ .proc_open = alignment_proc_open,
157
+ .proc_read = seq_read,
158
+ .proc_lseek = seq_lseek,
159
+ .proc_release = single_release,
160
+ .proc_write = alignment_proc_write,
162161 };
163162
164163 /*
....@@ -176,12 +175,12 @@
176175 return -ENOMEM;
177176
178177 res = proc_create_data("alignment", S_IWUSR | S_IRUGO, dir,
179
- &alignment_proc_fops, &se_usermode);
178
+ &alignment_proc_ops, &se_usermode);
180179 if (!res)
181180 return -ENOMEM;
182181
183182 res = proc_create_data("kernel_alignment", S_IWUSR | S_IRUGO, dir,
184
- &alignment_proc_fops, &se_kernmode_warn);
183
+ &alignment_proc_ops, &se_kernmode_warn);
185184 if (!res)
186185 return -ENOMEM;
187186