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
..
2021-06-30 12:21:16 -07:00
2023-03-17 08:48:51 +01:00
2023-06-14 11:12:59 +02:00
2021-09-03 22:14:40 -06:00
2023-06-14 11:12:59 +02:00
2021-08-02 13:37:27 -06:00
2021-06-11 11:53:02 -06:00
2021-06-30 12:21:16 -07:00