]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: m_can: Add check for devm_clk_get
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 23 Nov 2022 06:36:51 +0000 (14:36 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Nov 2022 15:10:18 +0000 (16:10 +0100)
commit68b4f9e0bdd0f920d7303d07bfe226cd0976961d
tree09b65110b30e704ccec05411f2c5529543491ab4
parent1eca1d4cc21b6d0fc5f9a390339804c0afce9439
can: m_can: Add check for devm_clk_get

Since the devm_clk_get may return error,
it should be better to add check for the cdev->hclk,
as same as cdev->cclk.

Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/all/20221123063651.26199-1-jiasheng@iscas.ac.cn
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c