X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/2a4663dd0b20d96d1ffe20993dd0c63ed2ca9f20..af6f1816764635c4d495177b74fe89a9a0e5ac4f:/lincan/src/smartcan.c diff --git a/lincan/src/smartcan.c b/lincan/src/smartcan.c index f9123fe..a7a990d 100644 --- a/lincan/src/smartcan.c +++ b/lincan/src/smartcan.c @@ -16,7 +16,7 @@ int smartcan_irq=-1; unsigned long smartcan_base=0x0; -static can_spinlock_t smartcan_port_lock=SPIN_LOCK_UNLOCKED; +static CAN_DEFINE_SPINLOCK(smartcan_port_lock); int smartcan_request_io(struct candevice_t *candev) { @@ -92,7 +92,7 @@ int smartcan_init_chip_data(struct candevice_t *candev, int chipnr) return 0; } -int smartcan_init_obj_data(struct chip_t *chip, int objnr) +int smartcan_init_obj_data(struct canchip_t *chip, int objnr) { chip->msgobj[objnr]->obj_base_addr=(objnr+1)*0x10;