gp = kcalloc(1, sizeof(struct fm801_gp), GFP_KERNEL); 
gp = kzalloc(sizeof(struct fm801_gp), GFP_KERNEL); 
static int __devinit fm801_gp_probe(struct pci_dev *pci, const struct pci_device_id *id){	struct fm801_gp *gp;	struct gameport *port;	gp = kcalloc(1, sizeof(struct fm801_gp), GFP_KERNEL);	port = gameport_allocate_port();	if (!gp || !port) {		printk(KERN_ERR "fm801-gp: Memory allocation failed\n");		kfree(gp);		gameport_free_port(port);		return -ENOMEM;	}	pci_enable_device(pci);	port->open = fm801_gp_open;#ifdef HAVE_COOKED	port->cooked_read = fm801_gp_cooked_read;#endif	gameport_set_name(port, "FM801");	gameport_set_phys(port, "pci%s/gameport0", pci_name(pci));	port->dev.parent = &pci->dev;	port->io = pci_resource_start(pci, 0);	gp->gameport = port;	gp->res_port = request_region(port->io, 0x10, "FM801 GP");	if (!gp->res_port) {		kfree(gp);		gameport_free_port(port);		printk(KERN_DEBUG "fm801-gp: unable to grab region 0x%x-0x%x\n",			port->io, port->io + 0x0f);		return -EBUSY;	}	pci_set_drvdata(pci, gp);	outb(0x60, port->io + 0x0d); /* enable joystick 1 and 2 */	gameport_register_port(port);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a97e148a8b8da8b04bc3e18ceb824a8f5f56d567/fm801-gp.c/clean/drivers/input/gameport/fm801-gp.c