]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/pcccan.c
Changed filling of the chip specific operations.
[lincan.git] / lincan / src / pcccan.c
index 8dbb485a98a86f716c470e6e3a11028ca6e66d9e..f83b1c55140cc92aa9d42eb6e565423edac35828 100644 (file)
@@ -152,7 +152,6 @@ int pcccan_init_hw_data(struct candevice_t *candev)
        return 0;
 }
 
-#define CHIP_TYPE "i82527"
 /**
  * pcccan_init_chip_data - Initialize chips
  * @candev: Pointer to candevice/board structure
@@ -187,7 +186,7 @@ int pcccan_init_hw_data(struct candevice_t *candev)
  */
 int pcccan_init_chip_data(struct candevice_t *candev, int chipnr)
 {
-       candev->chip[chipnr]->chip_type=CHIP_TYPE;
+       i82527_fill_chipspecops(candev->chip[chipnr]);
        candev->chip[chipnr]->chip_base_addr=candev->io_addr;
        candev->chip[chipnr]->clock = 16000000;
        candev->chip[chipnr]->int_cpu_reg = iCPU_DSC | iCPU_DMC;