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
* 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;