media: marvell: Add check for clk_enable()
authorJiasheng Jiang <jiashengjiangcool@gmail.com>
Tue, 3 Dec 2024 21:29:02 +0000 (21:29 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 19 Dec 2024 11:50:12 +0000 (12:50 +0100)
commit11f68d2ba2e1521a608af773bf788e8cfa260f68
treec4c9e9223860def2c0ba80b3110ec07dff4b0f5f
parent688c0a6907a7c6e6776f314195c10536f249b37f
media: marvell: Add check for clk_enable()

Add check for the return value of clk_enable() to guarantee the success.

Fixes: 81a409bfd551 ("media: marvell-ccic: provide a clock for the sensor")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
[Sakari Ailus: Fix spelling in commit message.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/marvell/mcam-core.c