int __init parallel_dbg_init(void) { int ret; ret = parport_register_driver(&debug_parport_driver); return ret; }
// Module entry point static int __init w9966_mod_init(void) { int i; for (i = 0; i < W9966_MAXCAMS; i++) w9966_cams[i].dev_state = 0; return parport_register_driver(&w9966_ppd); }
static int __init i2c_bitlp_init(void) { printk(KERN_INFO "i2c-philips-par.o: i2c Philips parallel port adapter module version %s (%s)\n", I2C_VERSION, I2C_DATE); parport_register_driver(&i2c_driver); return 0; }
static int __init i2c_parport_init(void) { if (type < 0 || type >= ARRAY_SIZE(adapter_parm)) { printk(KERN_WARNING "i2c-parport: invalid type (%d)\n", type); type = 0; } return parport_register_driver(&i2c_parport_driver); }
static int __init i2c_parport_init(void) { int type_count; type_count = sizeof(adapter_parm)/sizeof(struct adapter_parm); if (type < 0 || type >= type_count) { printk(KERN_WARNING "i2c-parport: invalid type (%d)\n", type); type = 0; } return parport_register_driver(&i2c_driver); }
int __init i2c_bitlp_init(void) { #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,4) struct parport *port; #endif printk("i2c-philips-par.o: i2c Philips parallel port adapter module\n"); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,4) parport_register_driver(&i2c_driver); #else for (port = parport_enumerate(); port; port=port->next) i2c_parport_attach(port); #endif return 0; }
// Module entry point static int __init w9966_mod_init(void) { int i, err; w9966_cams = kmalloc( sizeof(struct w9966_dev) * W9966_MAXCAMS, GFP_KERNEL); if (!w9966_cams) return -ENOMEM; for (i = 0; i < W9966_MAXCAMS; i++) w9966_cams[i].dev_state = 0; // Register parport driver if ((err = parport_register_driver(&w9966_ppd)) != 0) { kfree(w9966_cams); w9966_cams = 0; return err; } return 0; }
static int __init init_spi_lm70llp(void) { return parport_register_driver(&spi_lm70llp_drv); }
static int __init butterfly_init(void) { return parport_register_driver(&butterfly_driver); }