X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=kernel%2Flatencytop.c;h=8d1c15832e553dbfd751771ba05607d6609f6d9e;hb=d271ab29230b1d0ceb426f374c221c4eb2c91c64;hp=e3acead004e6e7025502cd222fd4183507e15fc6;hpb=593c75463ab6d6985cdc9916f3d1c28b5f6340cd;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/kernel/latencytop.c b/kernel/latencytop.c index e3acead..8d1c158 100644 --- a/kernel/latencytop.c +++ b/kernel/latencytop.c @@ -255,17 +255,17 @@ static int lstats_open(struct inode *inode, struct file *filp) return single_open(filp, lstats_show, NULL); } -static const struct file_operations lstats_fops = { - .open = lstats_open, - .read = seq_read, - .write = lstats_write, - .llseek = seq_lseek, - .release = single_release, +static const struct proc_ops lstats_proc_ops = { + .proc_open = lstats_open, + .proc_read = seq_read, + .proc_write = lstats_write, + .proc_lseek = seq_lseek, + .proc_release = single_release, }; static int __init init_lstats_procfs(void) { - proc_create("latency_stats", 0644, NULL, &lstats_fops); + proc_create("latency_stats", 0644, NULL, &lstats_proc_ops); return 0; }