aboutsummaryrefslogtreecommitdiff
path: root/samples/markers/marker-example.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/markers/marker-example.c')
-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 05e438f8b4e..e90dc5d0439 100644
--- a/samples/markers/marker-example.c
+++ b/samples/markers/marker-example.c
@@ -33,10 +33,8 @@ static struct file_operations mark_ops = {
static int example_init(void)
{
printk(KERN_ALERT "example init\n");
- pentry_example = create_proc_entry("marker-example", 0444, NULL);
- if (pentry_example)
- pentry_example->proc_fops = &mark_ops;
- else
+ pentry_example = proc_create("marker-example", 0444, NULL, &mark_ops);
+ if (!pentry_example)
return -EPERM;
return 0;
}