Lines Matching refs:dev3
1402 struct input_dev *dev3;
1405 dev3 = input_allocate_device();
1406 if (!dev3) {
1414 dev3->phys = priv->phys3;
1420 dev3->name = "PS/2 ALPS Mouse";
1422 dev3->id.bustype = BUS_I8042;
1423 dev3->id.vendor = 0x0002;
1424 dev3->id.product = PSMOUSE_PS2;
1425 dev3->id.version = 0x0000;
1426 dev3->dev.parent = &psmouse->ps2dev.serio->dev;
1428 input_set_capability(dev3, EV_REL, REL_X);
1429 input_set_capability(dev3, EV_REL, REL_Y);
1430 input_set_capability(dev3, EV_KEY, BTN_LEFT);
1431 input_set_capability(dev3, EV_KEY, BTN_RIGHT);
1432 input_set_capability(dev3, EV_KEY, BTN_MIDDLE);
1434 __set_bit(INPUT_PROP_POINTER, dev3->propbit);
1436 error = input_register_device(dev3);
1444 priv->dev3 = dev3;
1448 input_free_device(dev3);
1460 if (!priv->dev3) {
1467 priv->dev3 = ERR_PTR(error);
1485 } else if (unlikely(IS_ERR_OR_NULL(priv->dev3))) {
1486 /* Register dev3 mouse if we received PS/2 packet first time */
1487 if (!IS_ERR(priv->dev3))
1492 dev = priv->dev3;
2980 if (!IS_ERR_OR_NULL(priv->dev3))
2981 input_unregister_device(priv->dev3);