X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Finput%2Finput.c;h=1730d7331a5dff13a6841fd0009066f49cde6666;hb=a0c9f240a992c4c2b6ac40324ece27475cf3b71a;hp=408df0bd6be50a0b17798b189506c266d0ba34bf;hpb=f1b0c8d3d3b5ff9c0b14bb2383a4bc38d8922bd1;p=mv-sheeva.git diff --git a/drivers/input/input.c b/drivers/input/input.c index 408df0bd6be..1730d7331a5 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -242,7 +242,7 @@ static void input_handle_event(struct input_dev *dev, break; } - if (type != EV_SYN) + if (disposition != INPUT_IGNORE_EVENT && type != EV_SYN) dev->sync = 0; if ((disposition & INPUT_PASS_TO_DEVICE) && dev->event) @@ -1389,8 +1389,8 @@ int input_register_device(struct input_dev *dev) if (!dev->setkeycode) dev->setkeycode = input_default_setkeycode; - snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id), - "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1); + dev_set_name(&dev->dev, "input%ld", + (unsigned long) atomic_inc_return(&input_no) - 1); error = device_add(&dev->dev); if (error)