int i, t; int err; 
struct input_dev *input_dev; int err = -ENOMEM; int i; 
static int magellan_connect(struct serio *serio, struct serio_driver *drv){	struct magellan *magellan;	int i, t;	int err;	if (!(magellan = kmalloc(sizeof(struct magellan), GFP_KERNEL)))		return -ENOMEM;	memset(magellan, 0, sizeof(struct magellan));	magellan->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);	for (i = 0; i < 9; i++)		set_bit(magellan_buttons[i], magellan->dev.keybit);	for (i = 0; i < 6; i++) {		t = magellan_axes[i];		set_bit(t, magellan->dev.absbit);		magellan->dev.absmin[t] = -360;		magellan->dev.absmax[t] =  360;	}	sprintf(magellan->phys, "%s/input0", serio->phys);	init_input_dev(&magellan->dev);	magellan->dev.private = magellan;	magellan->dev.name = magellan_name;	magellan->dev.phys = magellan->phys;	magellan->dev.id.bustype = BUS_RS232;	magellan->dev.id.vendor = SERIO_MAGELLAN;	magellan->dev.id.product = 0x0001;	magellan->dev.id.version = 0x0100;	magellan->dev.dev = &serio->dev;	serio_set_drvdata(serio, magellan);	err = serio_open(serio, drv);	if (err) {		serio_set_drvdata(serio, NULL);		kfree(magellan);		return err;	}	input_register_device(&magellan->dev);	printk(KERN_INFO "input: %s on %s\n", magellan_name, serio->phys);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/magellan.c/clean/drivers/input/joystick/magellan.c