net: lan966x: remove debugfs directory in probe() error path

A debugfs directory entry is create early during probe(). This entry is
not removed on error path leading to some "already present" issues in

Create this entry later in the probe() code to avoid the need to change
many 'return' in 'goto' and add the removal in the already present error

Fixes: 942814840127 ("net: lan966x: Add VCAP debugFS support")
Cc: <>
Signed-off-by: Herve Codina <>
Reviewed-by: Andrew Lunn <>
Reviewed-by: Horatiu Vultur <>
Signed-off-by: David S. Miller <>
1 file changed