2009-01-25 22:46:48

by Kay Sievers

[permalink] [raw]
Subject: gpio: struct device - replace bus_id with dev_name(), dev_set_name()

From: Kay Sievers <[email protected]>
Subject: gpio: struct device - replace bus_id with dev_name(), dev_set_name()

Cc: Michael Buesch <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Kay Sievers <[email protected]>
---
drivers/gpio/bt8xxgpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpio/bt8xxgpio.c
+++ b/drivers/gpio/bt8xxgpio.c
@@ -160,7 +160,7 @@ static void bt8xxgpio_gpio_setup(struct
{
struct gpio_chip *c = &bg->gpio;

- c->label = bg->pdev->dev.bus_id;
+ c->label = dev_name(&bg->pdev->dev);
c->owner = THIS_MODULE;
c->direction_input = bt8xxgpio_gpio_direction_input;
c->get = bt8xxgpio_gpio_get;