#define ZERO_DEV(dev) \
memset(&dev->atr_csum,0, \
sizeof(struct cm4000_dev) - \
- offsetof(struct cm4000_dev, atr_csum))
+ /*link*/ sizeof(struct pcmcia_device *) - \
+ /*node*/ sizeof(dev_node_t) - \
+ /*atr*/ MAX_ATR*sizeof(char) - \
+ /*rbuf*/ 512*sizeof(char) - \
+ /*sbuf*/ 512*sizeof(char) - \
+ /*queue*/ 4*sizeof(wait_queue_head_t))
static struct pcmcia_device *dev_table[CM4000_MAX_DEV];
static struct class *cmm_class;
return;
}
-static const struct file_operations cm4000_fops = {
+static struct file_operations cm4000_fops = {
.owner = THIS_MODULE,
.read = cmm_read,
.write = cmm_write,