2 * Atheros AR71xx built-in ethernet mac driver
4 * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
5 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
7 * Based on Atheros' AG7100 driver
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License version 2 as published
11 * by the Free Software Foundation.
14 #include <linux/debugfs.h>
18 static struct dentry
*ag71xx_debugfs_root
;
20 int ag71xx_debugfs_root_init(void)
22 if (ag71xx_debugfs_root
)
25 ag71xx_debugfs_root
= debugfs_create_dir(KBUILD_MODNAME
, NULL
);
26 if (!ag71xx_debugfs_root
)
32 void ag71xx_debugfs_root_exit(void)
34 debugfs_remove(ag71xx_debugfs_root
);
35 ag71xx_debugfs_root
= NULL
;
38 void ag71xx_debugfs_exit(struct ag71xx
*ag
)
40 debugfs_remove(ag
->debug
.debugfs_dir
);
43 int ag71xx_debugfs_init(struct ag71xx
*ag
)
45 ag
->debug
.debugfs_dir
= debugfs_create_dir(ag
->dev
->name
,
47 if (!ag
->debug
.debugfs_dir
)
53 ag71xx_debugfs_exit(ag
);
This page took 0.043607 seconds and 5 git commands to generate.