In register_flexcandev the chip and the clock are both enabled to do the basic configuration of the CAN core. Disable clock and chip after successfull configuration. Otherwise the clk_enable count would be unbalanced.
Signed-off-by: Marc Kleine-Budde <[email protected]> Cc: Bhaskar Upadhaya <[email protected]> Cc: Scott Wood <[email protected]> --- Hello Bhaskar & Scott, can you please test on PPC hardware and apply to fsl's PPC tree. cheers, Marc drivers/net/can/flexcan.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index 05c53eb..f06a528 100644 --- a/drivers/net/can/flexcan.c +++ b/drivers/net/can/flexcan.c @@ -759,7 +759,6 @@ static int __devinit register_flexcandev(struct net_device *dev) err = register_candev(dev); - return err; out: /* disable core and turn off clocks */ flexcan_chip_disable(priv); -- 1.7.4.1 _______________________________________________ Socketcan-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/socketcan-users
