diff options
author | Vadim Pasternak <[email protected]> | 2022-07-19 18:35:40 +0300 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2022-07-28 20:38:08 +0200 |
commit | b4b830a34d8046633231b7fe87f6f2cb6240dc9f (patch) | |
tree | 9e66b829fe8e92c3fd7cf7627318ba61da814f03 /drivers/platform/surface/surface_gpe.c | |
parent | c9d959fc32a5f9312282817052d8986614f2dc08 (diff) |
platform/mellanox: mlxreg-lc: Fix error flow and extend verbosity
Fix error flow:
- Clean-up client object in case of probing failure.
- Prevent running remove routine in case of probing failure.
Probing and removing are invoked by hotplug events raised upon line
card insertion and removing. If probing procedure failed all data is
cleared and there is nothing to do in remove routine.
Fixes: 62f9529b8d5c ("platform/mellanox: mlxreg-lc: Add initial support for Nvidia line card devices")
Signed-off-by: Vadim Pasternak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_gpe.c')
0 files changed, 0 insertions, 0 deletions