greybus: uart-gb: fix up typo from previous patch moving the status variable around.
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 20 Nov 2014 00:56:13 +0000 (16:56 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 20 Nov 2014 00:56:13 +0000 (16:56 -0800)
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/uart-gb.c

index 1be00d654a6d22403b0e727f5d4b42742b4f8255..8df3bfb24a7e71eff82f81a99afd1c6e7f04f8ce 100644 (file)
@@ -159,6 +159,7 @@ static int get_version(struct gb_tty *tty)
                gb_connection_err(tty->connection, "result %hhu",
                        operation->result);
        } else {
+               response = operation->response.payload;
                if (response->major > GB_UART_VERSION_MAJOR) {
                        pr_err("unsupported major version (%hhu > %hhu)\n",
                                response->major, GB_UART_VERSION_MAJOR);