]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/setup.c
The first round of I/O space pointers separation.
[lincan.git] / lincan / src / setup.c
index bce1226f1bd4f499c3d3b498c6eb4805e45fb996..619956af7c417096d3bf3ff390c850cf5ba6f25c 100644 (file)
@@ -30,9 +30,9 @@ int init_obj_struct(struct candevice_t *candev, struct canchip_t *hostchip, int
  * This function is prepared to simplify board specific xxx_request_io() function
  * for memory mapped devices.
  */
-int can_base_addr_fixup(struct candevice_t *candev, unsigned long new_base)
+int can_base_addr_fixup(struct candevice_t *candev, can_ioptr_t new_base)
 {
-       unsigned long offs;
+       long offs;
        int i, j;
        
        offs=new_base-candev->dev_base_addr;