diff options
Diffstat (limited to 'drivers/input/gameport/gameport.c')
-rw-r--r-- | drivers/input/gameport/gameport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c index 2880eaae157a..ebf4be5b7c4e 100644 --- a/drivers/input/gameport/gameport.c +++ b/drivers/input/gameport/gameport.c | |||
@@ -530,8 +530,7 @@ static void gameport_init_port(struct gameport *gameport) | |||
530 | 530 | ||
531 | mutex_init(&gameport->drv_mutex); | 531 | mutex_init(&gameport->drv_mutex); |
532 | device_initialize(&gameport->dev); | 532 | device_initialize(&gameport->dev); |
533 | snprintf(gameport->dev.bus_id, sizeof(gameport->dev.bus_id), | 533 | dev_set_name(&gameport->dev, "gameport%lu", (unsigned long)atomic_inc_return(&gameport_no) - 1); |
534 | "gameport%lu", (unsigned long)atomic_inc_return(&gameport_no) - 1); | ||
535 | gameport->dev.bus = &gameport_bus; | 534 | gameport->dev.bus = &gameport_bus; |
536 | gameport->dev.release = gameport_release_port; | 535 | gameport->dev.release = gameport_release_port; |
537 | if (gameport->parent) | 536 | if (gameport->parent) |