X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=samples%2Fmarkers%2Fmarker-example.c;h=e90dc5d04392dcc0f10d6d480dd6a866cc54df0e;hb=9bd6ceb666e76b9a3caefa158827a571ead55b6a;hp=05e438f8b4e2d8511e69a4961cf8e35b0dbbeebd;hpb=6e5565f949af1322f8f3d3f43d044645ae448499;p=linux-2.6 diff --git a/samples/markers/marker-example.c b/samples/markers/marker-example.c index 05e438f8b4..e90dc5d043 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; }