char: xillybus: Fix spelling mistake and comment
authorEli Billauer <eli.billauer@gmail.com>
Fri, 24 Jun 2016 07:48:30 +0000 (10:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 12:47:54 +0000 (14:47 +0200)
This patch fixes two minor issues:

(1) An inaccurate comment
(2) A spelling mistake in dev_err message ("upgarde" -> "upgrade")

Reported-by: Joe Perches <joe@perches.com>
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xillybus/xillybus_core.c

index dcd19f3f182e569e4e8e991653afdfb3b5af14be..b6c9cdead7f3a0bbccd4744374da00d95d902931 100644 (file)
@@ -655,10 +655,10 @@ static int xilly_obtain_idt(struct xilly_endpoint *endpoint)
 
        version = channel->wr_buffers[0]->addr;
 
-       /* Check version number. Accept anything below 0x82 for now. */
+       /* Check version number. Reject anything above 0x82. */
        if (*version > 0x82) {
                dev_err(endpoint->dev,
-                       "No support for IDT version 0x%02x. Maybe the xillybus driver needs an upgarde. Aborting.\n",
+                       "No support for IDT version 0x%02x. Maybe the xillybus driver needs an upgrade. Aborting.\n",
                        *version);
                return -ENODEV;
        }