get rid of create_proc_entry() abuses - proc_mkdir() is there for purpose
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 06:07:46 +0000 (02:07 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 14:12:33 +0000 (10:12 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/arm/mach-bcmring/dma.c
drivers/staging/rtl8187se/r8180_core.c
drivers/staging/rtl8192e/ieee80211/ieee80211_module.c
drivers/staging/rtl8192e/r8192E_core.c
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
drivers/staging/rtl8192u/r8192U_core.c
sound/core/info.c

index d87ad30dda35a8c2ed5689e3c50590b2320e7b5a..9f2a948e0e72a61083cf3038a03f4aa2bae4520c 100644 (file)
@@ -835,7 +835,7 @@ int dma_init(void)
 
        /* Create /proc/dma/channels and /proc/dma/devices */
 
-       gDmaDir = create_proc_entry("dma", S_IFDIR | S_IRUGO | S_IXUGO, NULL);
+       gDmaDir = proc_mkdir("dma", NULL);
 
        if (gDmaDir == NULL) {
                printk(KERN_ERR "Unable to create /proc/dma\n");
index bae7d85fe831a56234b234ee413c146da1b1719b..4c6651aac30793ffab9ade20bd167acd3303de7d 100644 (file)
@@ -307,7 +307,7 @@ static int proc_get_stats_tx(char *page, char **start,
 void rtl8180_proc_module_init(void)
 {
        DMESG("Initializing proc filesystem");
-       rtl8180_proc = create_proc_entry(RTL8180_MODULE_NAME, S_IFDIR, init_net.proc_net);
+       rtl8180_proc = proc_mkdir(RTL8180_MODULE_NAME, init_net.proc_net);
 }
 
 void rtl8180_proc_module_remove(void)
index 663b0b8e109500fd4baf376b8171a1e98eb567ff..c2901b50dbfe116912119b67fe1e4e4a7f165587 100644 (file)
@@ -311,7 +311,7 @@ int __init ieee80211_rtl_init(void)
        }
 
        ieee80211_debug_level = debug;
-       ieee80211_proc = create_proc_entry(DRV_NAME, S_IFDIR, init_net.proc_net);
+       ieee80211_proc = proc_mkdir(DRV_NAME, init_net.proc_net);
        if (ieee80211_proc == NULL) {
                IEEE80211_ERROR("Unable to create " DRV_NAME
                                " proc directory\n");
index 19a9a07224a2f12ee39346f6b1809c34b1187397..8550794c6b91be30079428f989659a3519d74028 100644 (file)
@@ -508,7 +508,7 @@ static int proc_get_stats_rx(char *page, char **start,
 static void rtl8192_proc_module_init(void)
 {
        RT_TRACE(COMP_INIT, "Initializing proc filesystem\n");
-       rtl8192_proc=create_proc_entry(RTL819xE_MODULE_NAME, S_IFDIR, init_net.proc_net);
+       rtl8192_proc = proc_mkdir(RTL819xE_MODULE_NAME, init_net.proc_net);
 }
 
 
@@ -540,9 +540,7 @@ static void rtl8192_proc_init_one(struct r8192_priv *priv)
        struct net_device *dev = priv->ieee80211->dev;
        struct proc_dir_entry *e;
 
-       priv->dir_dev = create_proc_entry(dev->name,
-                                         S_IFDIR | S_IRUGO | S_IXUGO,
-                                         rtl8192_proc);
+       priv->dir_dev = proc_mkdir(dev->name, rtl8192_proc);
        if (!priv->dir_dev) {
                RT_TRACE(COMP_ERR, "Unable to initialize /proc/net/rtl8192/%s\n",
                      dev->name);
index fe978f359f91d9b9caba2aee28253fa682b4f19f..d315b256b7a7cfd63aa9cfb8996e0ed8bf7aa6bd 100644 (file)
@@ -283,7 +283,7 @@ int __init ieee80211_debug_init(void)
 
        ieee80211_debug_level = debug;
 
-       ieee80211_proc = create_proc_entry(DRV_NAME, S_IFDIR, init_net.proc_net);
+       ieee80211_proc = proc_mkdir(DRV_NAME, init_net.proc_net);
        if (ieee80211_proc == NULL) {
                IEEE80211_ERROR("Unable to create " DRV_NAME
                                " proc directory\n");
index e81b8ab6aa9d160c6a8c30327a751d9d6b82ef48..6a1b5c179027b955ce50a04fb8c28fd680653acf 100644 (file)
@@ -671,7 +671,7 @@ static int proc_get_stats_rx(char *page, char **start,
 void rtl8192_proc_module_init(void)
 {
        RT_TRACE(COMP_INIT, "Initializing proc filesystem");
-       rtl8192_proc=create_proc_entry(RTL819xU_MODULE_NAME, S_IFDIR, init_net.proc_net);
+       rtl8192_proc = proc_mkdir(RTL819xU_MODULE_NAME, init_net.proc_net);
 }
 
 
@@ -706,9 +706,7 @@ void rtl8192_proc_init_one(struct net_device *dev)
 {
        struct proc_dir_entry *e;
        struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
-       priv->dir_dev = create_proc_entry(dev->name,
-                                         S_IFDIR | S_IRUGO | S_IXUGO,
-                                         rtl8192_proc);
+       priv->dir_dev = proc_mkdir(dev->name, rtl8192_proc);
        if (!priv->dir_dev) {
                RT_TRACE(COMP_ERR, "Unable to initialize /proc/net/rtl8192/%s\n",
                      dev->name);
index 7077f601da5a66a279bed9be77159f2ec80dfc78..601f0ebb677ba7348abb41130a1fbd28952c919d 100644 (file)
@@ -531,7 +531,7 @@ int __init snd_info_init(void)
 {
        struct proc_dir_entry *p;
 
-       p = create_proc_entry("asound", S_IFDIR | S_IRUGO | S_IXUGO, NULL);
+       p = proc_mkdir("asound", NULL);
        if (p == NULL)
                return -ENOMEM;
        snd_proc_root = p;