Corrected typo in legacy PCA82C200 (SJA1000 std) chip driver.
authorppisa <ppisa>
Tue, 30 Oct 2007 11:40:13 +0000 (11:40 +0000)
committerppisa <ppisa>
Tue, 30 Oct 2007 11:40:13 +0000 (11:40 +0000)
Thanks to Terence Soh for noticing the problem.

Important notice, if the board is equipped by real SJA1000
CAN controller chip, then PeliCAN mode is much much better
choice and  sja1000p_register() function should be used
instead of bare standard sja1000_register() chip support.

lincan/src/sja1000.c

index 71c7095..de3ab20 100644 (file)
@@ -515,7 +515,7 @@ int sja1000_register(struct chipspecops_t *chipspecops)
        chipspecops->start_chip = sja1000_start_chip;
        chipspecops->stop_chip = sja1000_stop_chip;
        chipspecops->irq_handler = sja1000_irq_handler;
-       chipspecops->irq_handler = NULL;
+       chipspecops->irq_accept = NULL;
        return 0;
 }