diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-30 00:07:50 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2008-10-30 09:29:05 -0400 |
commit | a6c2490f010d9235b1424110c6f414460e41dfe1 (patch) | |
tree | 2c7d6773739791bfa0510e1ea27e88a3e5ab4cdb /drivers/input/gameport | |
parent | dde4ac07263161264d089c7556d0295487787b77 (diff) |
Input: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/gameport')
-rw-r--r-- | drivers/input/gameport/gameport.c | 3 | ||||
-rw-r--r-- | drivers/input/gameport/ns558.c | 2 |
2 files changed, 2 insertions, 3 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) |
diff --git a/drivers/input/gameport/ns558.c b/drivers/input/gameport/ns558.c index 2b282cde4b89..db556b71ddda 100644 --- a/drivers/input/gameport/ns558.c +++ b/drivers/input/gameport/ns558.c | |||
@@ -226,7 +226,7 @@ static int ns558_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *did) | |||
226 | ns558->gameport = port; | 226 | ns558->gameport = port; |
227 | 227 | ||
228 | gameport_set_name(port, "NS558 PnP Gameport"); | 228 | gameport_set_name(port, "NS558 PnP Gameport"); |
229 | gameport_set_phys(port, "pnp%s/gameport0", dev->dev.bus_id); | 229 | gameport_set_phys(port, "pnp%s/gameport0", dev_name(&dev->dev)); |
230 | port->dev.parent = &dev->dev; | 230 | port->dev.parent = &dev->dev; |
231 | port->io = ioport; | 231 | port->io = ioport; |
232 | 232 | ||