]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/setup.c
Fully working solution!
[lincan.git] / lincan / src / setup.c
index c96658482fe9f9aa2acd557627b232e8aaccc4c1..5a4ecb64691fb69dceb1ac5a3f82acada593a1ab 100644 (file)
@@ -19,6 +19,8 @@ int init_device_struct(int card, int *chan_param_idx_p, int *irq_param_idx_p);
 int init_chip_struct(struct candevice_t *candev, int chipnr, int irq, long baudrate);
 int init_obj_struct(struct candevice_t *candev, struct canchip_t *hostchip, int objnr);
 
+int next_minor=0;
+
 /**
  * can_base_addr_fixup - relocates board physical memory addresses to the CPU accessible ones
  * @candev: pointer to the previously filled device/board, chips and message objects structures
@@ -78,7 +80,6 @@ int can_check_dev_taken(void *anydev)
  */
 int register_obj_struct(struct msgobj_t *obj, int minorbase)
 {
-       static int next_minor=0;
        int i;
 
        if(minorbase>=0)