From: Ruiqiang Hao <[email protected]>

In new kernel, The type of the last parameter of function proc_create()
is struct proc_ops instead of struct file_operations. We should change
the type of oct_brd_fops to struct proc_ops and change its member function
name accordingly.

Signed-off-by: Ruiqiang Hao <[email protected]>
---
 drivers/soc/marvell/octeontx_info.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/soc/marvell/octeontx_info.c 
b/drivers/soc/marvell/octeontx_info.c
index f8354b124124..0fb4fcfed6bb 100644
--- a/drivers/soc/marvell/octeontx_info.c
+++ b/drivers/soc/marvell/octeontx_info.c
@@ -133,11 +133,11 @@ static int oct_brd_proc_open(struct inode *inode, struct 
file *file)
        return single_open(file, oct_brd_proc_show, NULL);
 }
 
-static const struct file_operations oct_brd_fops = {
-       .open = oct_brd_proc_open,
-       .read = seq_read,
-       .llseek = seq_lseek,
-       .release = single_release,
+static const struct proc_ops oct_brd_fops = {
+       .proc_open = oct_brd_proc_open,
+       .proc_read = seq_read,
+       .proc_lseek = seq_lseek,
+       .proc_release = single_release,
 };
 
 static int octtx_parse_mac_info(struct device_node *node)
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10047): 
https://lists.yoctoproject.org/g/linux-yocto/message/10047
Mute This Topic: https://lists.yoctoproject.org/mt/83990778/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to