devices/ccat/module-3.4-ethercat.c
branchstable-1.5
changeset 2551 000da5069f1a
parent 2550 7e25950ea941
child 2552 6e419c23b1b3
equal deleted inserted replaced
2550:7e25950ea941 2551:000da5069f1a
   294 }
   294 }
   295 
   295 
   296 static int ccat_init_module(void)
   296 static int ccat_init_module(void)
   297 {
   297 {
   298 	static const size_t offset = offsetof(struct ccat_eth_frame, data);
   298 	static const size_t offset = offsetof(struct ccat_eth_frame, data);
   299 	BUILD_BUG_ON(sizeof(struct ccat_eth_frame) != sizeof(CCatDmaTxFrame));
   299 	BUILD_BUG_ON(offset != CCAT_DMA_FRAME_HEADER_LENGTH);
   300 	BUILD_BUG_ON(sizeof(struct ccat_eth_frame) != sizeof(CCatRxDesc));
       
   301 	BUILD_BUG_ON(offset != offsetof(CCatDmaTxFrame, data));
       
   302 	BUILD_BUG_ON(offset != offsetof(CCatRxDesc, data));
       
   303 	pr_info("%s, %s\n", DRV_DESCRIPTION, DRV_VERSION);
   300 	pr_info("%s, %s\n", DRV_DESCRIPTION, DRV_VERSION);
   304 	return pci_register_driver(&pci_driver);
   301 	return pci_register_driver(&pci_driver);
   305 }
   302 }
   306 
   303 
   307 module_exit(ccat_exit_module);
   304 module_exit(ccat_exit_module);