From: Viresh Kumar Date: Wed, 12 Oct 2016 02:32:22 +0000 (+0530) Subject: Staging: greybus: uart: Use gbphy_dev->dev instead of bundle->dev X-Git-Tag: v4.9.8~1033^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fa589126f23243bd998a464cb6158d343eb6a89;p=platform%2Fkernel%2Flinux-rpi3.git Staging: greybus: uart: 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 Acked-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index 5ee7954..2633d2b 100644 --- a/drivers/staging/greybus/uart.c +++ b/drivers/staging/greybus/uart.c @@ -888,7 +888,7 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev, minor = alloc_minor(gb_tty); if (minor < 0) { if (minor == -ENOSPC) { - dev_err(&connection->bundle->dev, + dev_err(&gbphy_dev->dev, "no more free minor numbers\n"); retval = -ENODEV; } else {