From: Al Viro Date: Fri, 29 Mar 2013 23:30:06 +0000 (-0400) Subject: rtl8192e: don't use create_proc_entry() for directories X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3e7b40c192b4e31eb7043867ea87f834076b1e2;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git rtl8192e: don't use create_proc_entry() for directories proc_mkdir() is there for purpose... Signed-off-by: Al Viro --- diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c index f9dae958a5d4..40b6d809e01e 100644 --- a/drivers/staging/rtl8192e/rtllib_module.c +++ b/drivers/staging/rtl8192e/rtllib_module.c @@ -246,7 +246,7 @@ int __init rtllib_init(void) struct proc_dir_entry *e; rtllib_debug_level = debug; - rtllib_proc = create_proc_entry(DRV_NAME, S_IFDIR, init_net.proc_net); + rtllib_proc = proc_mkdir(DRV_NAME, init_net.proc_net); if (rtllib_proc == NULL) { RTLLIB_ERROR("Unable to create " DRV_NAME " proc directory\n");