X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/a4c9ead4b64bd4de307f375c2ff313a7a07a06e0..ac38874293eb5b28a54d8534f832a757a39c1230:/lincan/src/main.c diff --git a/lincan/src/main.c b/lincan/src/main.c index d8a0cb2..bb6abbf 100644 --- a/lincan/src/main.c +++ b/lincan/src/main.c @@ -128,7 +128,7 @@ MODULE_AUTHOR("Pavel Pisa , Arnaud Westenberg"); /* Global structures, used to describe the installed hardware. */ struct canhardware_t canhardware; struct canhardware_t *hardware_p=&canhardware; -struct chip_t *chips_p[MAX_TOT_CHIPS]; +struct canchip_t *chips_p[MAX_TOT_CHIPS]; struct msgobj_t *objects_p[MAX_TOT_MSGOBJS]; #ifdef CONFIG_DEVFS_FS #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,60)) @@ -177,7 +177,7 @@ int init_module(void) { int res=0,i=0, j; struct candevice_t *candev; - struct chip_t *chip; + struct canchip_t *chip; if (parse_mod_parms()) return -EINVAL; @@ -211,7 +211,7 @@ int init_module(void) for (i=0; inr_boards; i++) { candev=hardware_p->candevice[i]; if (candev->hwspecops->request_io(candev)) - goto memory_error; + goto request_io_error; candev->flags|=CANDEV_IO_RESERVED; } @@ -247,7 +247,9 @@ int init_module(void) #ifdef CONFIG_DEVFS_FS { + #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,50)) char dev_name[32]; + #endif int dev_minor; for(i=0;i