From: Mathieu Olivari Date: Sat, 23 May 2015 02:03:29 +0000 (-0700) Subject: net: stmmac: create one debugfs dir per net-device X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~48^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=466c5ac8bdf29a382d064923a60ef302dd3b2aeb;p=pandora-kernel.git net: stmmac: create one debugfs dir per net-device stmmac DebugFS entries are currently global to the driver. As a result, having more than one stmmac device in the system creates the following error: * ERROR stmmaceth, debugfs create directory failed * stmmac_hw_setup: failed debugFS registration This also results in being able to access the debugfs information for the first registered device only. This patch changes the debugfs structure to have one sub-directory per net-device. Files under "/sys/kernel/debug/stmmaceth" will now show-up under /sys/kernel/debug/stmmaceth/ethN/. Signed-off-by: Mathieu Olivari Signed-off-by: David S. Miller --- Reading git-diff-tree failed