Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 039bea84 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarRui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1001354c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -702,15 +702,13 @@ static int gb_gpio_probe(struct gbphy_device *gbphy_dev,
	ret = gb_gpio_irqchip_add(gpio, irqc, 0,
				   handle_level_irq, IRQ_TYPE_NONE);
	if (ret) {
		dev_err(&connection->bundle->dev,
			"failed to add irq chip: %d\n", ret);
		dev_err(&gbphy_dev->dev, "failed to add irq chip: %d\n", ret);
		goto exit_line_free;
	}

	ret = gpiochip_add(gpio);
	if (ret) {
		dev_err(&connection->bundle->dev,
			"failed to add gpio chip: %d\n", ret);
		dev_err(&gbphy_dev->dev, "failed to add gpio chip: %d\n", ret);
		goto exit_gpio_irqchip_remove;
	}