Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Viresh Kumar and committed by
Greg Kroah-Hartman
039bea84 1001354c

+2 -4
+2 -4
drivers/staging/greybus/gpio.c
··· 702 702 ret = gb_gpio_irqchip_add(gpio, irqc, 0, 703 703 handle_level_irq, IRQ_TYPE_NONE); 704 704 if (ret) { 705 - dev_err(&connection->bundle->dev, 706 - "failed to add irq chip: %d\n", ret); 705 + dev_err(&gbphy_dev->dev, "failed to add irq chip: %d\n", ret); 707 706 goto exit_line_free; 708 707 } 709 708 710 709 ret = gpiochip_add(gpio); 711 710 if (ret) { 712 - dev_err(&connection->bundle->dev, 713 - "failed to add gpio chip: %d\n", ret); 711 + dev_err(&gbphy_dev->dev, "failed to add gpio chip: %d\n", ret); 714 712 goto exit_gpio_irqchip_remove; 715 713 } 716 714