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:37:28 +0000 (15:37 +0100)
commitf2fce585d55ca4b530bc4372f66bfed23abca225
treea2558ac1628eb42774122c88078f75c33e6479b1
parentdb94533f587d7770f1fc6f8659795fbff50fa28a
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