net/mlx5: Continue driver initialization despite debugfs failure
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 13 Dec 2018 11:15:11 +0000 (13:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:30 +0000 (15:34 +0100)
commit697f1034af8d5b25d4fdc98c568a9850f23a55ff
tree22fce5991ac4003f1cfcfc164134c1b69e7221cd
parent33e1ad60beb1fc35bda053725d625c104d844f54
net/mlx5: Continue driver initialization despite debugfs failure

[ Upstream commit 199fa087dc6b503baad06712716fac645a983e8a ]

The failure to create debugfs entry is unpleasant event, but not enough
to abort drier initialization. Align the mlx5_core code to debugfs design
and continue execution whenever debugfs_create_dir() successes or not.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c