- 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;
-
- serio->private = magellan;
-
- if (serio_open(serio, dev)) {
- kfree(magellan);
- return;
- }