]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
can: peak_usb: exchange the order of information messages
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 21 Oct 2021 08:15:05 +0000 (10:15 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 6 Nov 2021 16:34:28 +0000 (17:34 +0100)
Proposes the possible update of the PCAN-USB firmware after indicating its
name and current version.

Link: https://lore.kernel.org/all/20211021081505.18223-3-s.grosjean@peak-system.com
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb.c

index af8d3dadbbb8bb9ef1ff0fbf79f61adf07b9da1b..8762187527669b76d46d8636c064ae8cf3a5f4f5 100644 (file)
@@ -883,6 +883,11 @@ static int pcan_usb_init(struct peak_usb_device *dev)
                return err;
        }
 
+       dev_info(dev->netdev->dev.parent,
+                "PEAK-System %s adapter hwrev %u serial %08X (%u channel)\n",
+                pcan_usb.name, dev->device_rev, serial_number,
+                pcan_usb.ctrl_count);
+
        /* Since rev 4.1, PCAN-USB is able to make single-shot as well as
         * looped back frames.
         */
@@ -896,11 +901,6 @@ static int pcan_usb_init(struct peak_usb_device *dev)
                         "Firmware update available. Please contact support@peak-system.com\n");
        }
 
-       dev_info(dev->netdev->dev.parent,
-                "PEAK-System %s adapter hwrev %u serial %08X (%u channel)\n",
-                pcan_usb.name, dev->device_rev, serial_number,
-                pcan_usb.ctrl_count);
-
        return 0;
 }