diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2014-11-04 09:49:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-05 16:14:43 -0500 |
commit | 50fb4f74744b49126ec4cb6c013bb594a67c01e5 (patch) | |
tree | 095d1437e0783be62d906e1b7d6235428321110e /drivers/net/ethernet/stmicro | |
parent | c0d540661d4b5e8f6c9f84e03dce9baa0409f055 (diff) |
stmmac: remove STMMAC_DEBUG_FS
the STMMAC_DEBUG_FS Koption is now removed from the
driver configuration and this support will be built
by default when DEBUG_FS is present. This can also be
useful on building driver verification.
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/Kconfig | 8 | ||||
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 14 |
2 files changed, 7 insertions, 15 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index 40f356d9f21b..af5228ac5600 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig | |||
@@ -38,14 +38,6 @@ config STMMAC_PCI | |||
38 | 38 | ||
39 | If unsure, say N. | 39 | If unsure, say N. |
40 | 40 | ||
41 | config STMMAC_DEBUG_FS | ||
42 | bool "Enable monitoring via sysFS " | ||
43 | default n | ||
44 | depends on STMMAC_ETH && DEBUG_FS | ||
45 | ---help--- | ||
46 | The stmmac entry in /sys reports DMA TX/RX rings | ||
47 | or (if supported) the HW cap register. | ||
48 | |||
49 | config STMMAC_DA | 41 | config STMMAC_DA |
50 | bool "STMMAC DMA arbitration scheme" | 42 | bool "STMMAC DMA arbitration scheme" |
51 | default n | 43 | default n |
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 6f77a46c7e2c..a34754b6facb 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |||
@@ -44,10 +44,10 @@ | |||
44 | #include <linux/slab.h> | 44 | #include <linux/slab.h> |
45 | #include <linux/prefetch.h> | 45 | #include <linux/prefetch.h> |
46 | #include <linux/pinctrl/consumer.h> | 46 | #include <linux/pinctrl/consumer.h> |
47 | #ifdef CONFIG_STMMAC_DEBUG_FS | 47 | #ifdef CONFIG_DEBUG_FS |
48 | #include <linux/debugfs.h> | 48 | #include <linux/debugfs.h> |
49 | #include <linux/seq_file.h> | 49 | #include <linux/seq_file.h> |
50 | #endif /* CONFIG_STMMAC_DEBUG_FS */ | 50 | #endif /* CONFIG_DEBUG_FS */ |
51 | #include <linux/net_tstamp.h> | 51 | #include <linux/net_tstamp.h> |
52 | #include "stmmac_ptp.h" | 52 | #include "stmmac_ptp.h" |
53 | #include "stmmac.h" | 53 | #include "stmmac.h" |
@@ -116,7 +116,7 @@ MODULE_PARM_DESC(chain_mode, "To use chain instead of ring mode"); | |||
116 | 116 | ||
117 | static irqreturn_t stmmac_interrupt(int irq, void *dev_id); | 117 | static irqreturn_t stmmac_interrupt(int irq, void *dev_id); |
118 | 118 | ||
119 | #ifdef CONFIG_STMMAC_DEBUG_FS | 119 | #ifdef CONFIG_DEBUG_FS |
120 | static int stmmac_init_fs(struct net_device *dev); | 120 | static int stmmac_init_fs(struct net_device *dev); |
121 | static void stmmac_exit_fs(void); | 121 | static void stmmac_exit_fs(void); |
122 | #endif | 122 | #endif |
@@ -1688,7 +1688,7 @@ static int stmmac_hw_setup(struct net_device *dev) | |||
1688 | if (ret && ret != -EOPNOTSUPP) | 1688 | if (ret && ret != -EOPNOTSUPP) |
1689 | pr_warn("%s: failed PTP initialisation\n", __func__); | 1689 | pr_warn("%s: failed PTP initialisation\n", __func__); |
1690 | 1690 | ||
1691 | #ifdef CONFIG_STMMAC_DEBUG_FS | 1691 | #ifdef CONFIG_DEBUG_FS |
1692 | ret = stmmac_init_fs(dev); | 1692 | ret = stmmac_init_fs(dev); |
1693 | if (ret < 0) | 1693 | if (ret < 0) |
1694 | pr_warn("%s: failed debugFS registration\n", __func__); | 1694 | pr_warn("%s: failed debugFS registration\n", __func__); |
@@ -1866,7 +1866,7 @@ static int stmmac_release(struct net_device *dev) | |||
1866 | 1866 | ||
1867 | netif_carrier_off(dev); | 1867 | netif_carrier_off(dev); |
1868 | 1868 | ||
1869 | #ifdef CONFIG_STMMAC_DEBUG_FS | 1869 | #ifdef CONFIG_DEBUG_FS |
1870 | stmmac_exit_fs(); | 1870 | stmmac_exit_fs(); |
1871 | #endif | 1871 | #endif |
1872 | 1872 | ||
@@ -2453,7 +2453,7 @@ static int stmmac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
2453 | return ret; | 2453 | return ret; |
2454 | } | 2454 | } |
2455 | 2455 | ||
2456 | #ifdef CONFIG_STMMAC_DEBUG_FS | 2456 | #ifdef CONFIG_DEBUG_FS |
2457 | static struct dentry *stmmac_fs_dir; | 2457 | static struct dentry *stmmac_fs_dir; |
2458 | static struct dentry *stmmac_rings_status; | 2458 | static struct dentry *stmmac_rings_status; |
2459 | static struct dentry *stmmac_dma_cap; | 2459 | static struct dentry *stmmac_dma_cap; |
@@ -2638,7 +2638,7 @@ static void stmmac_exit_fs(void) | |||
2638 | debugfs_remove(stmmac_dma_cap); | 2638 | debugfs_remove(stmmac_dma_cap); |
2639 | debugfs_remove(stmmac_fs_dir); | 2639 | debugfs_remove(stmmac_fs_dir); |
2640 | } | 2640 | } |
2641 | #endif /* CONFIG_STMMAC_DEBUG_FS */ | 2641 | #endif /* CONFIG_DEBUG_FS */ |
2642 | 2642 | ||
2643 | static const struct net_device_ops stmmac_netdev_ops = { | 2643 | static const struct net_device_ops stmmac_netdev_ops = { |
2644 | .ndo_open = stmmac_open, | 2644 | .ndo_open = stmmac_open, |