patch-2.3.30 linux/drivers/nubus/proc.c
Next file: linux/drivers/pci/compat.c
Previous file: linux/drivers/net/wavelan.p.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sat Nov 27 15:27:48 1999
- Orig file:
v2.3.29/linux/drivers/nubus/proc.c
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.3.29/linux/drivers/nubus/proc.c linux/drivers/nubus/proc.c
@@ -95,7 +95,7 @@
struct nubus_dir dir;
sprintf(name, "%x", ent.type);
- e = create_proc_entry(name, S_IFDIR, parent);
+ e = proc_mkdir(name, parent);
if (!e) return;
/* And descend */
@@ -131,8 +131,7 @@
/* Create a directory */
sprintf(name, "%x", dev->board->slot);
- e = dev->procdir = create_proc_entry(name, S_IFDIR,
- proc_bus_nubus_dir);
+ e = dev->procdir = proc_mkdir(name, proc_bus_nubus_dir);
if (!e)
return -ENOMEM;
@@ -169,7 +168,7 @@
{
if (!MACH_IS_MAC)
return;
- proc_bus_nubus_dir = create_proc_entry("nubus", S_IFDIR, proc_bus);
+ proc_bus_nubus_dir = proc_mkdir("nubus", proc_bus);
create_proc_info_entry("devices", 0, proc_bus_nubus_dir,
get_nubus_dev_info);
proc_bus_nubus_add_devices();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)