From: Adrian Bunk - make the needlessly global gigaset_get_cs_by_tty() static - remove the unused EXPORT_SYMBOL_GPL(gigaset_debugdrivers) Signed-off-by: Adrian Bunk Acked-by: Tilman Schmidt Signed-off-by: Andrew Morton --- drivers/isdn/gigaset/common.c | 17 ++++++++--------- drivers/isdn/gigaset/gigaset.h | 1 - 2 files changed, 8 insertions(+), 10 deletions(-) diff -puN drivers/isdn/gigaset/common.c~drivers-isdn-gigaset-commonc-small-cleanups drivers/isdn/gigaset/common.c --- devel/drivers/isdn/gigaset/common.c~drivers-isdn-gigaset-commonc-small-cleanups 2006-04-05 03:22:02.000000000 -0700 +++ devel-akpm/drivers/isdn/gigaset/common.c 2006-04-05 03:22:02.000000000 -0700 @@ -1037,16 +1037,8 @@ void gigaset_debugdrivers(void) } spin_unlock_irqrestore(&driver_lock, flags); } -EXPORT_SYMBOL_GPL(gigaset_debugdrivers); -struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty) -{ - if (tty->index < 0 || tty->index >= tty->driver->num) - return NULL; - return gigaset_get_cs_by_minor(tty->index + tty->driver->minor_start); -} - -struct cardstate *gigaset_get_cs_by_minor(unsigned minor) +static struct cardstate *gigaset_get_cs_by_minor(unsigned minor) { unsigned long flags; static struct cardstate *ret = NULL; @@ -1069,6 +1061,13 @@ struct cardstate *gigaset_get_cs_by_mino return ret; } +struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty) +{ + if (tty->index < 0 || tty->index >= tty->driver->num) + return NULL; + return gigaset_get_cs_by_minor(tty->index + tty->driver->minor_start); +} + void gigaset_freedriver(struct gigaset_driver *drv) { unsigned long flags; diff -puN drivers/isdn/gigaset/gigaset.h~drivers-isdn-gigaset-commonc-small-cleanups drivers/isdn/gigaset/gigaset.h --- devel/drivers/isdn/gigaset/gigaset.h~drivers-isdn-gigaset-commonc-small-cleanups 2006-04-05 03:22:02.000000000 -0700 +++ devel-akpm/drivers/isdn/gigaset/gigaset.h 2006-04-05 03:22:02.000000000 -0700 @@ -776,7 +776,6 @@ struct gigaset_driver *gigaset_initdrive /* Deallocate driver structure. */ void gigaset_freedriver(struct gigaset_driver *drv); void gigaset_debugdrivers(void); -struct cardstate *gigaset_get_cs_by_minor(unsigned minor); struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty); struct cardstate *gigaset_get_cs_by_id(int id); _