Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34690
b: refs/heads/master
c: 69263bc
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Sep 22, 2006
1 parent 83a3728 commit 8b6028b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d458c25ce24ce00ea547e9976e293e7835416253
refs/heads/master: 69263bcfb5016bc3bdd099607a4232cba06f8491
11 changes: 0 additions & 11 deletions trunk/net/atm/mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ static struct notifier_block mpoa_notifier = {
0
};

#ifdef CONFIG_PROC_FS
extern int mpc_proc_init(void);
extern void mpc_proc_clean(void);
#endif

struct mpoa_client *mpcs = NULL; /* FIXME */
static struct atm_mpoa_qos *qos_head = NULL;
static DEFINE_TIMER(mpc_timer, NULL, 0, 0);
Expand Down Expand Up @@ -1439,12 +1434,8 @@ static __init int atm_mpoa_init(void)
{
register_atm_ioctl(&atm_ioctl_ops);

#ifdef CONFIG_PROC_FS
if (mpc_proc_init() != 0)
printk(KERN_INFO "mpoa: failed to initialize /proc/mpoa\n");
else
printk(KERN_INFO "mpoa: /proc/mpoa initialized\n");
#endif

printk("mpc.c: " __DATE__ " " __TIME__ " initialized\n");

Expand All @@ -1457,9 +1448,7 @@ static void __exit atm_mpoa_cleanup(void)
struct atm_mpoa_qos *qos, *nextqos;
struct lec_priv *priv;

#ifdef CONFIG_PROC_FS
mpc_proc_clean();
#endif

del_timer(&mpc_timer);
unregister_netdevice_notifier(&mpoa_notifier);
Expand Down
8 changes: 8 additions & 0 deletions trunk/net/atm/mpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@ int atm_mpoa_delete_qos(struct atm_mpoa_qos *qos);
struct seq_file;
void atm_mpoa_disp_qos(struct seq_file *m);

#ifdef CONFIG_PROC_FS
int mpc_proc_init(void);
void mpc_proc_clean(void);
#else
#define mpc_proc_init() (0)
#define mpc_proc_clean() do { } while(0)
#endif

#endif /* _MPC_H_ */

0 comments on commit 8b6028b

Please sign in to comment.