diff options
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index c13ced3e0d3d..1730d7331a5d 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -1389,8 +1389,8 @@ int input_register_device(struct input_dev *dev) | |||
1389 | if (!dev->setkeycode) | 1389 | if (!dev->setkeycode) |
1390 | dev->setkeycode = input_default_setkeycode; | 1390 | dev->setkeycode = input_default_setkeycode; |
1391 | 1391 | ||
1392 | snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id), | 1392 | dev_set_name(&dev->dev, "input%ld", |
1393 | "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1); | 1393 | (unsigned long) atomic_inc_return(&input_no) - 1); |
1394 | 1394 | ||
1395 | error = device_add(&dev->dev); | 1395 | error = device_add(&dev->dev); |
1396 | if (error) | 1396 | if (error) |