From: Lars Ellenberg Date: Thu, 11 Mar 2010 15:47:58 +0000 (+0100) Subject: drbd: use proc_create_data with explicit NULL argument X-Git-Tag: v3.0~4900^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c484ee4910b36c9ac273ad1150261c6ebfc1ef7;p=platform%2Fkernel%2Flinux-amlogic.git drbd: use proc_create_data with explicit NULL argument To document that we know about deprecation of proc_create, even though we are not affected, as we don't use the ->data member, open code proc_create_data(..., NULL); Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 93d1f9b..db7a07a 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -3129,7 +3129,7 @@ int __init drbd_init(void) if (err) goto Enomem; - drbd_proc = proc_create("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops); + drbd_proc = proc_create_data("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops, NULL); if (!drbd_proc) { printk(KERN_ERR "drbd: unable to register proc file\n"); goto Enomem;