Skip to content

Commit 68d426d

Browse files
sknseanmarckleinebudde
authored andcommitted
can: tcan4x5x: get rid of false clock errors
tcan4x5x devices only requires the 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 and results in this warning message: | tcan4x5x spi0.0: no clock found Signed-off-by: Sean Nyekjaer <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent bddad4f commit 68d426d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/m_can/tcan4x5x-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int tcan4x5x_can_probe(struct spi_device *spi)
409409
priv->power = NULL;
410410
}
411411

412-
m_can_class_get_clocks(mcan_class);
412+
mcan_class->cclk = devm_clk_get(mcan_class->dev, "cclk");
413413
if (IS_ERR(mcan_class->cclk)) {
414414
dev_err(&spi->dev, "no CAN clock source defined\n");
415415
freq = TCAN4X5X_EXT_CLK_DEF;

0 commit comments

Comments
 (0)