can: tcan4x5x: get rid of false clock errors
Subsystems (2)
PATCH 1/1 can: tcan4x5x: get rid of false clock errors
tcan4x5x devices only requires one clock cclk, so call devm_clk_get() directly. This is done to avoid m_can_class_get_clocks() that checks for both hclk and cclk.
tcan4x5x spi0.0: no clock found
Signed-off-by Sean Nyekjaer <[email protected]>
--- drivers/net/can/m_can/tcan4x5x-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/m_can/tcan4x5x-core.c +1 -1
@@ -410,7 +410,7 @@ static int tcan4x5x_can_probe(struct spi_device *spi) priv->power =NULL ; } -m_can_class_get_clocks (mcan_class); + mcan_class->cclk =devm_clk_get (mcan_class->dev,"cclk" );if (IS_ERR (mcan_class->cclk)) {dev_err (&spi->dev,"no CAN clock source defined\n" ); freq =TCAN4X5X_EXT_CLK_DEF ;
---
base-commit: e0b741bc53c94f9ae25d4140202557a0aa51b5a0
change-id: 20241127-mcancclk-741d21afcb29
Best regards,
Signature · 1 line
Sean Nyekjaer <[email protected]>
Marc Kleine-Budde
maintainerQuoted 7 lines · Sean Nyekjaer
tcan4x5x devices only requires one clock cclk, so call
devm_clk_get()directly. This is done to avoidm_can_class_get_clocks()that checks for both hclk and cclk.tcan4x5x spi0.0: no clock found
Signed-off-by Sean Nyekjaer <[email protected]>
Applied to linux-can-next/testing
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |