diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2010-03-11 10:47:58 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-05-17 18:59:00 -0400 |
commit | 8c484ee4910b36c9ac273ad1150261c6ebfc1ef7 (patch) | |
tree | d55a77ac40da505e199437d81a5f7344ad7c824b /drivers/block/drbd | |
parent | 5547e8aac6f71505d621a612de2fca0dd988b439 (diff) |
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 <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 93d1f9b469d4..db7a07a9a2cf 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -3129,7 +3129,7 @@ int __init drbd_init(void) | |||
3129 | if (err) | 3129 | if (err) |
3130 | goto Enomem; | 3130 | goto Enomem; |
3131 | 3131 | ||
3132 | drbd_proc = proc_create("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops); | 3132 | drbd_proc = proc_create_data("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops, NULL); |
3133 | if (!drbd_proc) { | 3133 | if (!drbd_proc) { |
3134 | printk(KERN_ERR "drbd: unable to register proc file\n"); | 3134 | printk(KERN_ERR "drbd: unable to register proc file\n"); |
3135 | goto Enomem; | 3135 | goto Enomem; |