aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/markers/marker-example.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/samples/markers/marker-example.c b/samples/markers/marker-example.c
index 05e438f8b4e2..e90dc5d04392 100644
--- a/samples/markers/marker-example.c
+++ b/samples/markers/marker-example.c
@@ -33,10 +33,8 @@ static struct file_operations mark_ops = {
33static int example_init(void) 33static int example_init(void)
34{ 34{
35 printk(KERN_ALERT "example init\n"); 35 printk(KERN_ALERT "example init\n");
36 pentry_example = create_proc_entry("marker-example", 0444, NULL); 36 pentry_example = proc_create("marker-example", 0444, NULL, &mark_ops);
37 if (pentry_example) 37 if (!pentry_example)
38 pentry_example->proc_fops = &mark_ops;
39 else
40 return -EPERM; 38 return -EPERM;
41 return 0; 39 return 0;
42} 40}