summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2017-06-12 13:56:51 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-13 12:50:15 -0400
commiteb3c28c15555212227cfa8b9a3baa21ad5982a19 (patch)
tree23a52e5a0eb848e7adcd629481c1299b6dfc3728 /drivers
parent97d8b6e3b8538198aefb0003342920a82e062147 (diff)
downloadlinux-eb3c28c15555212227cfa8b9a3baa21ad5982a19.tar.bz2
r8152: give the device version
Getting the device version out of the driver really aids debugging. Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/usb/r8152.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index ddc62cb69be8..1a419a45e2a2 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -4368,6 +4368,8 @@ static u8 rtl_get_version(struct usb_interface *intf)
break;
}
+ dev_dbg(&intf->dev, "Detected version 0x%04x\n", version);
+
return version;
}