diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-09-22 17:28:11 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:19:13 -0400 |
commit | 69263bcfb5016bc3bdd099607a4232cba06f8491 (patch) | |
tree | 0d147c53de267fec3055bd5cb11a24ce4c936f08 /net/atm/mpc.c | |
parent | d458c25ce24ce00ea547e9976e293e7835416253 (diff) |
[ATM]: proper prototypes in net/atm/mpc.h (and reduce ifdef clutter)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/mpc.c')
-rw-r--r-- | net/atm/mpc.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/net/atm/mpc.c b/net/atm/mpc.c index 00704661e83f..b87c2a88bdce 100644 --- a/net/atm/mpc.c +++ b/net/atm/mpc.c | |||
@@ -98,11 +98,6 @@ static struct notifier_block mpoa_notifier = { | |||
98 | 0 | 98 | 0 |
99 | }; | 99 | }; |
100 | 100 | ||
101 | #ifdef CONFIG_PROC_FS | ||
102 | extern int mpc_proc_init(void); | ||
103 | extern void mpc_proc_clean(void); | ||
104 | #endif | ||
105 | |||
106 | struct mpoa_client *mpcs = NULL; /* FIXME */ | 101 | struct mpoa_client *mpcs = NULL; /* FIXME */ |
107 | static struct atm_mpoa_qos *qos_head = NULL; | 102 | static struct atm_mpoa_qos *qos_head = NULL; |
108 | static DEFINE_TIMER(mpc_timer, NULL, 0, 0); | 103 | static DEFINE_TIMER(mpc_timer, NULL, 0, 0); |
@@ -1439,12 +1434,8 @@ static __init int atm_mpoa_init(void) | |||
1439 | { | 1434 | { |
1440 | register_atm_ioctl(&atm_ioctl_ops); | 1435 | register_atm_ioctl(&atm_ioctl_ops); |
1441 | 1436 | ||
1442 | #ifdef CONFIG_PROC_FS | ||
1443 | if (mpc_proc_init() != 0) | 1437 | if (mpc_proc_init() != 0) |
1444 | printk(KERN_INFO "mpoa: failed to initialize /proc/mpoa\n"); | 1438 | printk(KERN_INFO "mpoa: failed to initialize /proc/mpoa\n"); |
1445 | else | ||
1446 | printk(KERN_INFO "mpoa: /proc/mpoa initialized\n"); | ||
1447 | #endif | ||
1448 | 1439 | ||
1449 | printk("mpc.c: " __DATE__ " " __TIME__ " initialized\n"); | 1440 | printk("mpc.c: " __DATE__ " " __TIME__ " initialized\n"); |
1450 | 1441 | ||
@@ -1457,9 +1448,7 @@ static void __exit atm_mpoa_cleanup(void) | |||
1457 | struct atm_mpoa_qos *qos, *nextqos; | 1448 | struct atm_mpoa_qos *qos, *nextqos; |
1458 | struct lec_priv *priv; | 1449 | struct lec_priv *priv; |
1459 | 1450 | ||
1460 | #ifdef CONFIG_PROC_FS | ||
1461 | mpc_proc_clean(); | 1451 | mpc_proc_clean(); |
1462 | #endif | ||
1463 | 1452 | ||
1464 | del_timer(&mpc_timer); | 1453 | del_timer(&mpc_timer); |
1465 | unregister_netdevice_notifier(&mpoa_notifier); | 1454 | unregister_netdevice_notifier(&mpoa_notifier); |