Dan Carpenter 0c0d79f336 pcd: fix error codes in pcd_init_unit()
commit d0ac7a30e41174c794fbfa53ea986d9555e5b9f4 upstream.

Return -ENODEV on these error paths instead of returning success.

Fixes: af761f277b7f ("pcd: cleanup initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211001122623.GA2283@kili
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:23:04 +02:00
..
2023-09-19 12:22:47 +02:00
2023-08-03 10:22:26 +02:00
2023-07-23 13:47:51 +02:00
2023-07-23 13:47:25 +02:00
2023-04-05 11:24:55 +02:00
2023-09-19 12:22:48 +02:00
2023-07-23 13:47:20 +02:00