summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-05-03 22:20:38 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-05-04 14:47:26 -0400
commite765acb4673f377c53505c01279c040906bd706e (patch)
treea0ab507a1136cbf986f55bf568ad8d54b0e9b525 /drivers
parent60b7bf4e61dd45e2fe06bd16ba04984405b564f1 (diff)
downloadlinux-3.10-e765acb4673f377c53505c01279c040906bd706e.tar.gz
linux-3.10-e765acb4673f377c53505c01279c040906bd706e.tar.bz2
linux-3.10-e765acb4673f377c53505c01279c040906bd706e.zip
nubus: Kill nubus_proc_detach_device()
Commit 59d8053f1e16904d54ed7469d4b36801ea6b8f2c ("proc: Move non-public stuff from linux/proc_fs.h to fs/proc/internal.h") broke Apple NuBus support: drivers/nubus/proc.c: In function ‘nubus_proc_detach_device’: drivers/nubus/proc.c:156: error: dereferencing pointer to incomplete type drivers/nubus/proc.c:158: error: dereferencing pointer to incomplete type Fortunately nubus_proc_detach_device() is unused, and appears to have never been used, so just remove it. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nubus/proc.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/nubus/proc.c b/drivers/nubus/proc.c
index b8286ed6591..5371b374f1f 100644
--- a/drivers/nubus/proc.c
+++ b/drivers/nubus/proc.c
@@ -147,21 +147,6 @@ int nubus_proc_attach_device(struct nubus_dev *dev)
}
EXPORT_SYMBOL(nubus_proc_attach_device);
-/* FIXME: this is certainly broken! */
-int nubus_proc_detach_device(struct nubus_dev *dev)
-{
- struct proc_dir_entry *e;
-
- if ((e = dev->procdir)) {
- if (atomic_read(&e->count))
- return -EBUSY;
- remove_proc_entry(e->name, proc_bus_nubus_dir);
- dev->procdir = NULL;
- }
- return 0;
-}
-EXPORT_SYMBOL(nubus_proc_detach_device);
-
/*
* /proc/nubus stuff
*/