X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/2a4663dd0b20d96d1ffe20993dd0c63ed2ca9f20..6e50f3ee73606b7f3df138dc79b3272e39108338:/lincan/src/pcccan.c diff --git a/lincan/src/pcccan.c b/lincan/src/pcccan.c index f83b1c5..b568912 100644 --- a/lincan/src/pcccan.c +++ b/lincan/src/pcccan.c @@ -20,7 +20,7 @@ int pcccan_irq=-1; unsigned long pcccan_base=0x0; -static can_spinlock_t pcccan_port_lock=SPIN_LOCK_UNLOCKED; +static CAN_DEFINE_SPINLOCK(pcccan_port_lock); /* * IO_RANGE is the io-memory range that gets reserved, please adjust according @@ -217,7 +217,7 @@ int pcccan_init_chip_data(struct candevice_t *candev, int chipnr) * Return Value: The function always returns zero * File: src/pcccan.c */ -int pcccan_init_obj_data(struct chip_t *chip, int objnr) +int pcccan_init_obj_data(struct canchip_t *chip, int objnr) { chip->msgobj[objnr]->obj_base_addr=(objnr+1)*0x10;