[2.6 patch] drivers/isdn/hardware/avm/: misc cleanups

From: Adrian Bunk
Date: Sat Feb 05 2005 - 19:34:36 EST


This patch makes the following cleanups:
- make some needlessly global functions static
- b1dma.c __init/__exit the functions b1dma_{init,exit}

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

drivers/isdn/hardware/avm/b1dma.c | 4 ++--
drivers/isdn/hardware/avm/c4.c | 6 +++---
drivers/isdn/hardware/avm/t1isa.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)

--- linux-2.6.11-rc3-mm1-full/drivers/isdn/hardware/avm/b1dma.c.old 2005-02-05 15:40:43.000000000 +0100
+++ linux-2.6.11-rc3-mm1-full/drivers/isdn/hardware/avm/b1dma.c 2005-02-05 15:42:32.000000000 +0100
@@ -955,7 +955,7 @@
EXPORT_SYMBOL(b1dma_send_message);
EXPORT_SYMBOL(b1dmactl_read_proc);

-int b1dma_init(void)
+static int __init b1dma_init(void)
{
char *p;
char rev[32];
@@ -972,7 +972,7 @@
return 0;
}

-void b1dma_exit(void)
+static void __exit b1dma_exit(void)
{
}

--- linux-2.6.11-rc3-mm1-full/drivers/isdn/hardware/avm/c4.c.old 2005-02-05 15:42:47.000000000 +0100
+++ linux-2.6.11-rc3-mm1-full/drivers/isdn/hardware/avm/c4.c 2005-02-05 15:43:16.000000000 +0100
@@ -885,7 +885,7 @@
}


-void c4_reset_ctr(struct capi_ctr *ctrl)
+static void c4_reset_ctr(struct capi_ctr *ctrl)
{
avmcard *card = ((avmctrl_info *)(ctrl->driverdata))->card;
avmctrl_info *cinfo;
@@ -933,7 +933,7 @@
/* ------------------------------------------------------------- */


-void c4_register_appl(struct capi_ctr *ctrl,
+static void c4_register_appl(struct capi_ctr *ctrl,
u16 appl,
capi_register_params *rp)
{
@@ -978,7 +978,7 @@

/* ------------------------------------------------------------- */

-void c4_release_appl(struct capi_ctr *ctrl, u16 appl)
+static void c4_release_appl(struct capi_ctr *ctrl, u16 appl)
{
avmctrl_info *cinfo = (avmctrl_info *)(ctrl->driverdata);
avmcard *card = cinfo->card;
--- linux-2.6.11-rc3-mm1-full/drivers/isdn/hardware/avm/t1isa.c.old 2005-02-05 15:43:33.000000000 +0100
+++ linux-2.6.11-rc3-mm1-full/drivers/isdn/hardware/avm/t1isa.c 2005-02-05 15:43:41.000000000 +0100
@@ -328,7 +328,7 @@
return 0;
}

-void t1isa_reset_ctr(struct capi_ctr *ctrl)
+static void t1isa_reset_ctr(struct capi_ctr *ctrl)
{
avmctrl_info *cinfo = (avmctrl_info *)(ctrl->driverdata);
avmcard *card = cinfo->card;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/