提交 4fa58912 编写于 作者: V Viresh Kumar 提交者: Greg Kroah-Hartman

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: NViresh Kumar <viresh.kumar@linaro.org>
Acked-by: NJohan Hovold <johan@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 039bea84
...@@ -888,7 +888,7 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev, ...@@ -888,7 +888,7 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev,
minor = alloc_minor(gb_tty); minor = alloc_minor(gb_tty);
if (minor < 0) { if (minor < 0) {
if (minor == -ENOSPC) { if (minor == -ENOSPC) {
dev_err(&connection->bundle->dev, dev_err(&gbphy_dev->dev,
"no more free minor numbers\n"); "no more free minor numbers\n");
retval = -ENODEV; retval = -ENODEV;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册