ata: sata_mv: aspeed: fix value check in mv_platform_probe()
authorMa Ke <make_ruc2021@163.com>
Tue, 10 Oct 2023 12:29:16 +0000 (20:29 +0800)
committerDamien Le Moal <dlemoal@kernel.org>
Wed, 11 Oct 2023 08:51:53 +0000 (17:51 +0900)
commit2267d5a146c8fe7fcad812aed93b44d4ae148789
tree300272b9667d1c5044a3c70f97e4357c08e2c351
parentb8b8b4e0c052b2c06e1c4820a8001f4e0f77900f
ata: sata_mv: aspeed: fix value check in mv_platform_probe()

In mv_platform_probe(), check the return value of clk_prepare_enable()
and return the error code if clk_prepare_enable() returns an
unexpected value.

Signed-off-by: Ma Ke <make_ruc2021@163.com>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/sata_mv.c