提交 039bea84 编写于 作者: V Viresh Kumar 提交者: Greg Kroah-Hartman

Staging: greybus: gpio: Use gbphy_dev->dev instead of bundle->dev

Some of the print messages are using the incorrect device pointer, fix
them.
Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
Acked-by: NJohan Hovold <johan@kernel.org>
Reviewed-by: NRui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1001354c
...@@ -702,15 +702,13 @@ static int gb_gpio_probe(struct gbphy_device *gbphy_dev, ...@@ -702,15 +702,13 @@ static int gb_gpio_probe(struct gbphy_device *gbphy_dev,
ret = gb_gpio_irqchip_add(gpio, irqc, 0, ret = gb_gpio_irqchip_add(gpio, irqc, 0,
handle_level_irq, IRQ_TYPE_NONE); handle_level_irq, IRQ_TYPE_NONE);
if (ret) { if (ret) {
dev_err(&connection->bundle->dev, dev_err(&gbphy_dev->dev, "failed to add irq chip: %d\n", ret);
"failed to add irq chip: %d\n", ret);
goto exit_line_free; goto exit_line_free;
} }
ret = gpiochip_add(gpio); ret = gpiochip_add(gpio);
if (ret) { if (ret) {
dev_err(&connection->bundle->dev, dev_err(&gbphy_dev->dev, "failed to add gpio chip: %d\n", ret);
"failed to add gpio chip: %d\n", ret);
goto exit_gpio_irqchip_remove; goto exit_gpio_irqchip_remove;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册