Skip to content

Commit

Permalink
Staging: greybus: uart: Use gbphy_dev->dev instead of bundle->dev
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Viresh Kumar authored and Greg Kroah-Hartman committed Oct 17, 2016
1 parent 039bea8 commit 4fa5891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/greybus/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4fa5891

Please sign in to comment.