]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/hms30c7202_can.c
LinCAN version updated to 0.3
[lincan.git] / lincan / src / hms30c7202_can.c
index fc130439e58c0a3c4413eebaf9a72194664334a6..ee99cb698419472055c3349a041cc3d182d4d33a 100644 (file)
@@ -6,7 +6,7 @@
  * Rewritten for new CAN queues by Pavel Pisa - OCERA team member
  * email:pisa@cmp.felk.cvut.cz
  * This software is released under the GPL-License.
- * Version lincan-0.2  9 Jul 2003
+ * Version lincan-0.3  17 Jun 2004
  */
 
 #include <linux/delay.h>
@@ -40,7 +40,7 @@
  */
 int hms30c7202_request_io(struct candevice_t *candev)
 {
-       DEBUGMSG("(c%d)calling hms30c7202_request_io(...)\n", pchip->chip_nr);
+       DEBUGMSG("(c%d)calling hms30c7202_request_io(...)\n", candev->chip[0]->chip_idx);
 
        if(!can_request_mem_region(candev->io_addr, IO_RANGE, DEVICE_NAME )) {
                CANMSG("hmsc30c7202_can failed to request mem region %lx.\n",
@@ -330,7 +330,7 @@ int hms30c7202_init_chip_data(struct candevice_t *candev, int chipnr)
 int hms30c7202_init_obj_data(struct chip_t *chip, int objnr)
 {
 
-       DEBUGMSG("(c%d)calling hms30c7202_init_obj_data( ...)\n", pchip->chip_nr);
+       DEBUGMSG("(c%d)calling hms30c7202_init_obj_data( ...)\n", chip->chip_idx);
 
        /* It seems, that there is no purpose to setup object base address */
        chip->msgobj[objnr]->obj_base_addr=0;