}
#endif
- for(i=0;i<MAX_TOT_MSGOBJS;i++) {
- if(!objects_p[i]) continue;
- if(objects_p[i]->hostchip->hostdevice != dev) continue;
- //canqueue_ends_done_chip(objects_p[i]->qends);
- //can_checked_free(objects_p[i]->qends);
- //can_checked_free(objects_p[i]);
- objects_p[i]=NULL;
- }
-
for(i=0;i<MAX_TOT_CHIPS;i++){
if(!chips_p[i]) continue;
if(chips_p[i]->hostdevice != dev) continue;
- //can_checked_free(chips_p[i]->chipspecops);
- //can_checked_free(chips_p[i]);
chips_p[i]=NULL;
}
hardware_p->candevice[dev->candev_idx]=NULL;
hardware_p->nr_boards--;
- //kfree(hw[dev->candev_idx]);
hw[dev->candev_idx]=NULL;
- //can_checked_free(dev->hwspecops);
- //can_checked_free(dev);
candevice_done(dev);
can_checked_free(dev);